-
-
Hello – I’m not sure if this is something you can help with. I’d like the search results in the site to be displayed differently than my blog posts.
I’ve got my blog posts set to “creative” – which works great for my blog, but when you’re in the store section of my site and search for a product, it isn’t user friendly because the product images are so large. The search results need to show more like “masonry” with the product images small and a small bit of text.
Is there any way to separate the search from the blog, and have a “search results layout” that is different?
-
Hello,
Please try this out:
Go to file search.php and find these lines:
https://codeshare.io/5vKmxD
replace with these:
https://codeshare.io/5OKXJj
Let us know.Best regards!
-
Thank you so much – that worked perfectly!
2) Is there a way to remove the date from the product results? (I do have my blog posts set to show the date.) If there’s no way to remove the date from just the products, can we remove the date from all search results, but leave the date on the posts when they’re listed on the blog page?
3) If a blog post happens to show up as a search result, it throws the layout off, because the image for the blog post is a header/slider image, where the product images are all square. Is there any way to fix this? Try searching “pet” and you’ll see what I mean.
I realize these are really small, fussy errors – overall, I’m just so happy that this was such an easy fix!
Rebecca
-
Hello,
2-To remove the date on only products in search page, please add this code into your custom css box:
.search .product .info li:first-child { display: none; } .search .product .info li:nth-child(2) { display: none; }
To remove date in all search results add this code:
.search .info li:first-child { display: none; } .search .info li:nth-child(2) { display: none; }
This does not affect the posts in blog page.
3-The blog post featured image is originally rectangle, not square. Changing it requires more work and it’s not supported from this forum.
PS: Please keep in mind to open new tickets for every question. Having multiple request in one topic or keep adding more in the same topic is not search effective for the forum. We wish for all our visitors to be able to find easily an answer from old topics to their issues. This is done by keeping up to one ticket per question.
Note: The two latest requests are in fact customizations, not theme errors. If you want to customize theme to your need(like filter search results to not show up blog posts but only products), that’s another thing. Other customers need to search to do it’s job and search for every thing it can find in the site related to the search key word.
We have already notified you that personal customizations are not included in support service. So please refrain to ask for only actual issues.Thank you for understanding and cooperating!
Best regards!
-
Mihaila –
I really appreciate your help. If the above doesn’t work, I won’t bother you with further questions about it.
PS: Since the search function hasn’t worked on the forum for quite some time, I didn’t assume that was a priority for Codeless. I was trying to be more efficient by keeping all related topics to one post, so that we didn’t end up with multiple tickets. I have no memory of you ever asking me to put these on different tickets, so I apologize for not doing this correctly.
Note: As I have stated multiple times, I am not a developer – I am someone doing my best to run a business and also have a website. I am not always certain what you consider a “customization” and what is a “bug”. I expect that you will state “We cannot do this for you” when that is the case.
I apologize for wasting your time, and I will certainly look for another theme to use in the future, so as not to bother you.
Best Regards,
Rebecca
-
-
-
You must be logged in to reply to this topic.