Forums › Forums › Search & Filter Pro › Customizing search results display not working
- This topic has 21 replies, 2 voices, and was last updated 10 years, 1 month ago by Anonymous.
-
Anonymous(Private) October 12, 2014 at 10:04 am #5870
Hi,
I don’t understand how the new Ajax instructions work with the styling of the search display.
If I choose “Load results using Ajax” and “Use a shortcode to display results” the option for Page template disappears. [http://imgur.com/RPYAhp2]
I am using this theme (https://wordpress.org/themes/baskerville). The search results, as well as the posts are displayed in a grid form (masonry layout). This is how I want to display the search results from using the Search and Filter plugin as well.
I understood that I would be able to do this by making the custom template search.php from my theme, but this is not working, even if I have the Ajax option disabled.
I just want the results to appear in the same way search results appear on my theme.
Please help.
Thanks.
Anonymous(Private) October 12, 2014 at 2:34 pm #5876I saw this in the support documentation:
If you wish to customise the display of your results, a template file is included in the Search & Filter folder.
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 your newly created folder wp-content\themes\your-theme-name-\search-filter\results.php
Search & Filter will now use this template to display your results 🙂
But I can’t seem to get this working…
If I unzip my theme folder, add a folder called search-filter, and put the results.php in it, and then zip it again, it’s not installing at all when I upload the theme on to wordpress.
Anonymous(Private) October 14, 2014 at 7:01 am #5915Ok, I changed the theme to something else, but the new theme supports a grid layout as well. In other words, the “posts” section, i.e. the blog section of the website will be displayed as a grid.
This is how I want the search results filtered by the plugin to display as well.
I figured out how to copy the results.php file into the theme folder, but nothing is happening, the results display the same way as before.
I get the feeling I’m missing something important here, but all the posts relating to customization of display predate the Ajax changes, so can’t get much help there!
Please help, thanks!
Ross Moderator(Private) October 14, 2014 at 4:19 pm #5939Hey Manas
I’m away at the moment but will help on my return – it looks like there must be something simple overlooked – and I will also update the docs to be more clear.
Thanks
RossRoss Moderator(Private) October 18, 2014 at 12:55 pm #6098Hey Manas just back from hols so playing catchup – I’ll update you later this afternoon.
Thanks
Anonymous(Private) October 18, 2014 at 3:39 pm #6103Great, thanks! Now it’s acting very buggy, in addition to the display problem I mentioned, it’s also not working for anybody except the admin. If I sign in with any other role, it shows the homepage instead of search results! So when you get a moment, I’d really love some help. Thanks again!
Ross Moderator(Private) October 18, 2014 at 5:56 pm #6112Hey Manas
Just realised I don’t have any links to look at? Could you provide a link to your search page and admin login details as well?
Thanks
-
AuthorPosts