The Empire CMS search page removes keywords and adds red codes to make the page more concise and easy to read

By default, the Empire CMS search page will add red to the keywords that appear, making the keywords on the search result page more prominent and more professional. But there is a bug. This function will also add red codes to the keywords that appear in the ALT TITLE on the image label. In addition, some friends do not need this red function, so how to remove the red code of keywords on the search page of Empire CMS code? The knife holder shares the method with everyone.

How to remove the code that adds red to keywords on the search page of Empire CMS Search
keywords are red to demonstrate Figure
1. Open the file: /e/search/result/index.php

2. Search

$listtext=str_replace($search_r[keyboard],"<font color='red'>$search_r[keyboard]</font>",$listtext);
3、修改成

$listtext=str_replace($search_r[keyboard],"$search_r[keyboard]",$listtext);
 

Guess you like

Origin blog.csdn.net/winkexin/article/details/131349986