Forums › Forums › Search & Filter Pro › Search Result Display
Tagged: design, display, search results
- This topic has 5 replies, 2 voices, and was last updated 3 years, 12 months ago by Trevor.
-
Anonymous(Private) November 9, 2020 at 9:49 pm #265716
First of all thank you for your plugin. It is the perfect solution to stay with my WordPress Theme but have better filter options for my content.
I was wondering how I can change how the search results are displayed?
I am using the search form and the search results as shortcodes on https://www.yogaycupcakes.com/yoga-library
The images are awfully scaled in the search results.Thanks a lot,
StefanieTrevor(Private) November 10, 2020 at 12:48 pm #265799As you are using our shortcode method the display of the results comes from our results.php file. You would need to customise it as described (in basic form) here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
To change the image size, edit these lines:
<?php if ( has_post_thumbnail() ) { echo '<p>'; the_post_thumbnail("small"); echo '</p>'; } ?>
I would suggest changing small to thumb.
You can change/delete other lines or parts. For example, to remove the date, you would need to remove this line:
<p><small><?php the_date(); ?></small></p>
Anonymous(Private) November 10, 2020 at 8:46 pm #265914Hi Trevor,
Thanks a lot for your reply, appreciate it.
How do I have to change the code in order to display the results like my WordPress theme displays them?
Like at the bottom of the page https://www.yogaycupcakes.com/yoga-library
Anonymous(Private) November 11, 2020 at 4:36 pm #266080Hi Trevor,
thank you again for your help.
I am using the Oshine WordPress theme https://oshinewptheme.com and it is using Tatsu Page builder.
Does that mean I can’t get the results displayed in a nice grid?Thank you for pointing out the Category problem. I will look into that then.
-
AuthorPosts