Forums › Forums › Search & Filter Pro › custom results.php does not work
Tagged: action, custom, filter_next_query, grid, siteorigin
- This topic has 13 replies, 2 voices, and was last updated 7 years, 3 months ago by Trevor.
-
Anonymous(Private) May 9, 2017 at 8:04 am #107547
Hello,
I’m using the custom results.php code you posted on this thread, but am still unable to see the grid layout take effect. https://support.searchandfilter.com/forums/search/results.php/page/2/
I did:
1) Create a folder in your theme folder called search-filter
2) Copy the file wp-content\plugins\search-filter\templates\results.php from the templates folder in to the newly created folder
3) Updated results.php
4) Used shortcode to display resultsTo give you more context, I’m trying to get a similar grid look as this: https://cookdpro.com/recipes/
Thanks in advance for your help!
Trevor(Private) May 10, 2017 at 7:42 am #107888I made no changes to the results.php file, as it does not use it. Instead it uses your theme’s grid builder. If you look at the page, you will see a text box above the grid with a shortcode in that links the form to your theme’s grid.
The layout and content of that grid is not in my control, it is in your theme, so you should check the documentation for your theme on how to do that.
All I did was to change the form Display results Method to Custom and enter the results page URL as well (if you decided it needs to be on a different page, you will have to edit that setting in the form).
I changed nothing in your theme files either.
-
AuthorPosts