Overriding results.php does not work when in child theme folder

Forums › Forums › Search & Filter Pro › Overriding results.php does not work when in child theme folder

Viewing 8 posts – 1 through 8 (of 8 total)
  • Anonymous
    #244342

    Hello,

    The method for overriding the result.php file does not work when it is placed in the child theme folder eg /mytheme-child. Is this expected behaviour?

    Regards, Jake.

    Trevor
    #244418

    Did you place it in a sub folder named search-filter, as per this guide:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    Anonymous
    #244439

    Hi Trevor,

    Thanks for your response, yes I tried search-filter and search-filter-pro.

    Only search-filter-pro is currently in plugins folder, should search-filter plugin file be present in the plugin directory too?

    Best, Jake.

    Trevor
    #244443

    It needs to be a folder named search-filter and not search-filer-pro in the child theme folder. Can you make it that and test?

    Anonymous
    #244468

    Hi Trevor,

    This is where we had the file and re-tested just now to be sure.

    /child-theme-folder/search-filter/templates/results.php

    Only works in:

    /master-theme-folder/search-filter/templates/results.php

    Regards, Jake.

    Trevor
    #244472

    Ah, no templates sub-folder. Directly in the search-filter folder.

    Anonymous
    #244506

    Ah, I am very sorry, I just re-checked the documentation and I did misread it.

    Thanks for your responses.

    Trevor
    #244510

    Thanks for getting back to me. I will close this thread for now.

Viewing 8 posts – 1 through 8 (of 8 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.