Question

I am trying to change some things on the smart search results page using overrides. It seems to me that my overrides are not working as I don't see any change when I change the code.

I tried various things, just taking out the relevant code, removing the whole code of the override as well as just removing random bits of code that should surely create some errors.

The file I am trying to override is the default_results.php file.

What I am trying to do (I don't know if this is relevant, I'll just post it anyway):

  • remove the 'examples of how you can use the search feature' text
  • remove the 'search by author', 'search by category' and 'search by type' text and dropdown menu
  • and the link that appears below every search result
Was it helpful?

Solution

Sounds like didn't set the override correctly. The default_results.php should be located in

\templates\YOURTEMPLATE\html\com_finder\search\default_results.php

And make sure you did it for the right domain, since that's what happened to me today, wondering why override wasn't working, while all the time I was editing the file under a wrong domain...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top