Tagged: search results display
March 16, 2017 at 4:29 pm #34801
Any tips on how to change the display results in search.php Satish?
I would like the search return results to display as the tag or category widgets or the posts on the home page.
I tried to upload images but the “Upload Images” button is not working for me in Firefox or Chrome.
March 18, 2017 at 8:53 am #34809
- This topic was modified 2 years, 2 months ago by Art Munson.
In design options layout options set archive layout to your liking.March 18, 2017 at 3:35 pm #34812
Thanks for the reply but none of those options duplicate the display I’m looking for. I wish I could get the Upload Image button here to work so I could show you what I mean.
If you search by tags or, select a category, at https://tunegorila.com you will see the search results display I would like. If you use the search box it returns the search display results I do not want.
Can I just take a copy of page.php and rename it search.php?
Thank you for any help.March 19, 2017 at 1:16 am #34813
Continuing to look at search.php and I think the section need modified is this:
<?php while (have_posts()) : the_post(); get_template_part($layout, get_post_format()); endwhile; ?>
Am I on the right track?March 21, 2017 at 1:17 pm #34837
I’m unable to understand your question because what you are asking for is the default behaviour.
Upload image is working now. Please share the images.March 21, 2017 at 2:45 pm #34847March 21, 2017 at 3:55 pm #34849
In swift/template_parts/blog.php line 30 change
if ((!$full_length) && (is_search() || isset($swift_options['excerpts_enable']) && $swift_options['excerpts_enable'])) : // Only display Excerpts for Search
if ((!$full_length) && ( isset($swift_options['excerpts_enable']) && $swift_options['excerpts_enable'])) : // Only display Excerpts for SearchMarch 21, 2017 at 4:16 pm #34851
So close! Just about perfect except at the top of the search results the following is displayed
echo "main ";March 21, 2017 at 5:13 pm #34852
Never mind, something I did. Sorry.March 21, 2017 at 5:30 pm #34853
All good now Satish. Thanks so much for your excellent support!
You must be logged in to reply to this topic.