Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #1195165

    Hey 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,
    Mike

    #1197803

    Hi 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

    #1198007

    Hi,
    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,
    Mike

    #1199836

    Hi 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

    #1200156

    Hi,
    To change the number of posts that the related entries show please edit
    \enfold\includes\related-posts.php
    and on line 32 look for: 'columns' => 6, and change the number “6” to “4”

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.