Tagged: related posts, thumbnail
-
AuthorPosts
-
March 20, 2020 at 10:33 pm #1194966
Hi guys!
Hope you are safe and doing great. Quick question. I would love to have the Related posts at the end of the blog posts show title only. No thumbnail.
How could I do that?
If not possible, can I change the number of related posts that render from 6 to 4?
Thank you so much!!
Havi
March 22, 2020 at 12:34 am #1195165Hey havi,
To have the related posts not show the image, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:#top.single .related_entries_container span.related_image_wrap { display: none !important; }
Best regards,
MikeMarch 25, 2020 at 6:51 pm #1197803Hi Mike,
It did work as a CSS and it’s not displaying them but it still loads the thumbnail. Do you know how I can avoid loading the thumbnail? My goal is to speed up the page load and reduce the DOM size.
Changing the number of related posts from 6 to 4 could help too if avoiding the thumbnail load is too difficult or too complex.
Thank you!!
Havi
PS: Sending you the URL to webpagetest.org so you can see the waterfall: https://www.webpagetest.org/result/200325_QY_c20fbb611ddb6ea09446c4b28fcf71e3/1/details/#waterfall_view_step1
March 26, 2020 at 1:12 pm #1198007Hi,
You could try removing the thumbnails from this file:
\enfold\includes\related-posts.php
Try line 124 and change from:$output .= $image;
to//$output .= $image;
Best regards,
MikeApril 1, 2020 at 7:00 pm #1199836Hi Mike,
Tried it. I had to use both the removing of the thumbnail rendering plus the CSS (or the default pencil would appear when you hover over the image and it was strange behavior) but it looks awful either way as the boxes have different sizes according to the title length.
I think it would be best if maybe you would consider it as an option for a new Enfold release? Show titles and no thumbnails?
How can I change the number of related posts that render from 6 to 4? This would help load less images (lower the number of HTTP requests) per post as well.
Thank you so much!
Havi
April 2, 2020 at 1:10 pm #1200156 -
AuthorPosts
- You must be logged in to reply to this topic.