Home › Forums › Weaver Xtreme Theme › Show Featured Image on Search Results Page
- This topic has 11 replies, 3 voices, and was last updated 2 years ago by
mugwumpr.
-
AuthorPosts
-
May 28, 2021 at 21:32 UTC - Views: 50 #68794
Hello,
I’ve got an ecommerce shop where the Featured Image is the most important part of each product.
Unfortunately, the search results page is showing everything BUT the featured image:
Is there a snippet or CSS solution to include the featured image in the results and, optionally, hide the text?
The search results page (the search form is in the menu bar): https://dobrador.com/?s=big+word
Wordpress, Weaver, and all plugins are at their most current version as of this post.
Thanks!
May 28, 2021 at 22:04 UTC - Views: 49 #68795Weaver
KeymasterYou can’t just display the featured image – it will have to include all the content.
But you have to set an option:
Customizer -> Layout -> Post Specific -> Full Post for Searches
May 28, 2021 at 22:25 UTC - Views: 47 #68797scrambler
ModeratorOnce the search display the full post, we should be able to hide the text with CSS.
Give us a link to a search page result showing the full post with the featured image.
May 28, 2021 at 23:17 UTC - Views: 44 #68798mugwumpr
ParticipantHey guys, thanks for the quick reply!
Sadly, it appears that I’ve already got that setting activated.
So, I guess the search results page in my original post is also one where that setting is activated.
May 28, 2021 at 23:32 UTC - Views: 43 #68799scrambler
ModeratorYou are right, it appears the result of a search never displays the featured image, even when using full posts.
@weaver, is that a bug?Any reason there is no featured image in a post inside a search page result?
May 29, 2021 at 00:39 UTC - Views: 38 #68800Weaver
KeymasterWhen I tested it, the featured image showed on searches.
May 29, 2021 at 01:35 UTC - Views: 35 #68803scrambler
ModeratorOK, so I had featured image set as header image replacement, which is why it did not show…
@mugwumpr
What setting do you have in the posts editing page > Weaver Xtreme 4 option for this post > Post Blog / Archive option TAB > Post Blog/Archive View: Featured Image?
Because if you have header image replacement, that would explain why it is not showing up
May 29, 2021 at 02:12 UTC - Views: 30 #68805mugwumpr
ParticipantOops, my bad. I had it set to hide the FI on all devices.
No idea why I did that.
You mentioned hiding the text?
May 29, 2021 at 03:35 UTC - Views: 28 #68808scrambler
ModeratorIt may not be as easy as I thought, but try putting the rule below in the theme Global Custom CSS Rule box
.search .entry-content p, .search .entry-content ul {display:none;}
May 29, 2021 at 17:40 UTC - Views: 23 #68812mugwumpr
ParticipantThat works perfectly for the mugs!
The size chart for the tees still shows, though.
May 30, 2021 at 03:54 UTC - Views: 12 #68817This reply has been accepted as the best answer.
Change the rule to
.search .entry-content p, .search .entry-content ul, .search .entry-content table {display:none;}
May 30, 2021 at 04:36 UTC - Views: 10 #68818mugwumpr
ParticipantThat worked like a charm! Thanks, scrambler!
-
AuthorPosts
- You must be logged in to reply to this topic.