BuddyBoss Home – Web Support Forums Themes Boss. theme Make Post Featured Image Full Height

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #51056
    @tpettee

    I was wondering how to make the featured image full height for each post excerpt on the blog page?

    I’ve tried adding custom thumbnail sizes to my the functions.php file in my child theme, and then regenerated thumbnails, but to no avail.

    There has to be an easy way to do it, but I’m just not PHP savvy.

    Thanks!

    Answers

    #51070

    Anonymous
    @

    Hi @tpettee, Read this: https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size
    The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the image you uploaded).

    Regards
    Pallavi

    #51121
    @tpettee

    Hi @Pallavi Gupta,

    Thanks for the reference to the WordPress codex. I’ve seen that and tried the following before without any change at all.

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 858, 9999 );

    I want the width to be 858px, which is the with of my content on my blog page, and I want the image height to be 100%, which is why I used, 9999.

    After adding those two lines to my functions.php file and regenerating thumbnails with a plugin, I still see no change.

    I also tried adding:

    add_image_size( ‘post-thumbnail’, ‘858’, ‘9999’ );

    But saw no change with that either.

    Please let me know if I’m doing something wrong, or if there’s something else I should try.

    Thanks,

    Todd

    #51267

    Anonymous
    @

    Hi @tpettee, you can easily increase height using css
    you can check single.php of the parent theme for further details.

    
    .entry-post-thumbnail {
        height: 900px !important;
    }
    .entry-post-thumbnail img {
        height: 100% !important;
    }
    

    i had included 900px just for demonstration, you can set what ever you need.
    Hopefully it will help
    Regards
    Varun Dubey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Make Post Featured Image Full Height’ is closed to new replies.