-
AuthorPosts
-
August 13, 2015 at 4:08 pm #487273
Hello,
Is it possible to display the featured image of a post on the search results page?
August 13, 2015 at 5:46 pm #487345Hi Deborahvwdj!
Try this out, https://kriesi.at/support/topic/add-featured-image-to-search-results/.
Best regards,
ElliottAugust 14, 2015 at 9:15 am #487599Thanks, it worked! I want to change the size of the thumbnail to 180px x 180 px, in a square. I tried changing the code, which made the image a square image of 180px, but the text didn’t show next to the image.
Please take a look at this screenshot:
August 14, 2015 at 11:35 am #487666August 14, 2015 at 11:39 am #487670Hi Yigit,
Unfortunately that’s not possible, since I’m developing on a local server. I can post a screenshot of ‘inspecting element’ if that helps?
August 14, 2015 at 11:47 am #487677Hey!
Please add following code to Quick CSS in Enfold theme options under General Styling tab
.search-result-counter { border-radius: 0 !important; }
Cheers!
YigitAugust 17, 2015 at 10:33 am #488738Thankyou, the code worked. This is how the search results page looks like:
Is it possible to make the image thumbnails bigger, 180px x 180px?
- This reply was modified 9 years, 4 months ago by dvwdj.
August 18, 2015 at 9:49 am #489322Hey!
Wordpress is defining automatically image sizes and you can control it with a plugin like this: https://wordpress.org/plugins/simple-image-sizes/
Regards,
AndyAugust 19, 2015 at 10:43 am #489927Hi Andy,
That’s not exactly what I mean. I want the thumbnails that appear on the search results page bigger. They are now 44 x 44px, but I want them 180px x 180px. When I changed the CSS code, they got bigger, however, the title and excerpt don’t move to the right, which results in the thumbnail on top of the text. Please take a look at this screenshot:
I used this code:
.search-result-counter {
padding: 0;
width: 180px;
height: 180px
}.search-result-counter img {
width: 180px;
height: 100%;
}The image also appears stretched, how can I fix this? The other thumbnails in my blog posts are cropped, not stretched..
- This reply was modified 9 years, 4 months ago by dvwdj.
August 19, 2015 at 11:01 am #489929Hi!
Please add following code to Quick CSS as well and adjust as needed
#top .template-search.content .entry-content-wrapper { padding-left: 150px; }
Regards,
YigitAugust 20, 2015 at 9:56 am #490628Thankyou, the code worked.
The thumbnail images still appear to be stretched. Any idea how I can fix that?
August 20, 2015 at 1:13 pm #490735 -
AuthorPosts
- You must be logged in to reply to this topic.