Viewing 1 replies (of 1 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi!

    When it comes to the final appearance of a featured post, the plugin has two important parts:

    1. Templates. By default, you’ll find a couple of examples in nelio-featured-posts/template-examples. For instance, the template title-and-featured-image.php inserts a featured image in line 24:
      
      echo get_the_post_thumbnail( $post->ID, 'thumbnail' );
      

      As you can see, that line inserts the featured image using its smallest size*: thumbnail.

    2. CSS. Just use a CSS rule to reduce the size of the featured image. This is tightly related to the previous point: just use a class to identify divs containing your featured posts and use that class to set the size of their featured images.

    These two rules should do the trick!

    * I realized the current version of the plugin doesn’t use thumbnail but post-thumbnail instead. Try to change that first and see if it fixes the issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Image size’ is closed to new replies.