Jump to content

Creating dynamic title tag in search results


Matthew Bayliss

Recommended Posts

I want to modify the title tag for the search results page so that it includes information from the search options.

 

For example: If a user does a search within [jr_radius] of [jr_city], I want the title tag to change to:

 

"Search results for XXX within [jr_radius] of [jr_city]"

 

We already use $_GET to display this data as custom text within the search results, so we just basically need the title tags modified to also include this data.

 

IMPORTANT: This will be a change we are looking to roll out across many sites - we are after the general solution, not a specific customization of a specific site. Alejandro suggests that it is the categories_controller.php file which needs to be modified. I've had a quick look and I simply don't have the time right now to play with it.

 

Should be a quick fix.

Link to comment
×
×
  • Create New...