Login   |   07 Oct 2024 
Support Center » Knowledgebase » 5. Search Engine Optimization » 5-0015-EN-Customizing Search Results page - change the highlighting color and number of search results
 5-0015-EN-Customizing Search Results page - change the highlighting color and number of search results
Article

A)   Increasing the Search Results value?

To change the search results value from 150, you would need to edit "search.php" file in the ShopFactory installation Common Files\PHPSearch folder and change the DEFINE ('MAXIMUM_RESULTS', 150); line to another value.

- Make sure ShopFactory is not currently running. Close ShopFactory.

- Open Windows Explorer

- Navigate to this path

C:\Program Files\ShopFactory V10\ShopFactory\Common Files\phpsearch

- Right click on the search.php file and select "Open With... -> Notepad"

- Find this line:

DEFINE('MAXIMUM_RESULTS', 150);

- Change the numerical value to whatever you like.

- Save the file.

- Open your shop in ShopFactory, enable Rebuild All from the Settings menu.

- Save and preview shop.

- Go back to normal mode and then untick Rebuild All from the Settings

menu.

B)   Changing the highlighting of search words to a different colour in the Search results page:

add this line to the <project folder>\Runtime\contents\styles\website.css file:

.SearchStringFound {background-color:green!important;}

Where, green can be changed to whatever colour you want, i.e. black



Article Details
Article ID: 5063
Created On: 06 Jan 2015 8:50 PM

 This answer was helpful  This answer was not helpful

 Back
 Search
 Article Options
Home | Knowledgebase | Downloads
Language:

Help Desk Software by Kayako SupportSuite v3.70.02