Support » Theme: Blue Planet » Thumbnail sizes

  • Resolved alltimecams


    I wanna set custom thumbnails sizes for page and post view.
    I saw all what you wrote but it dont work at my theme.
    In function.php i found :
    add_theme_support( ‘post-thumbnails’ );
    add_image_size( ‘homepage-thumb’, 285, 215, true ); //(cropped)

    But still in page or post view thumbnail size is too large.
    Can you help me please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Nilambar Sharma



    If you want to display thumbnail in single post and page view, you need to do following tweaks.
    * You have to override two template files from your child theme. content-single.php, content-page.php
    * Find following line.
    <?php the_post_thumbnail(); ?>
    * Replace it with following.
    <?php the_post_thumbnail( 'homepage-thumb', array( 'class' => 'aligncenter' ) ); ?>


    Theme Author Nilambar Sharma


    Closing ticket.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Thumbnail sizes’ is closed to new replies.