Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #369343

    Hi there, I would like to tweak the related posts entries, ie: limit the max amount (ie: 4) and increase featured image size from thumbnail to medium. Is there settings for this or must I edit the single.php template file?

    Change max related posts + incrs img sz

    • This topic was modified 9 years, 11 months ago by cptnem0.
    #369644

    Hi cptnem0!

    Open up /enfold/includes/related-posts.php and change line 107 from this.

    $post_thumb = get_the_post_thumbnail($related_post->ID, $image_size, array('title' => esc_attr(get_the_title($post_thumbnail_id))));
    

    To this.

    $post_thumb = get_the_post_thumbnail($related_post->ID, array(300, 300), array('title' => esc_attr(get_the_title($post_thumbnail_id))));
    

    You can change how many gets displayed on line 55.

    $postcount 			= ($columns * 1);
    

    You may need some CSS too though depending on the layout your using. Send us a link and we’ll take a look.

    Best regards,
    Elliott

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.