BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Change Featured Image Thumbnail Size

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

    #32724
    @flick-chicks

    I have my posts set up to be displayed on a static page and when the post’s featured image is with it the thumbnail size is a square (I think 150×150). Is this a theme setting? I have gone into Settings > Media and tried to change the thumbnail size there and it is not working, and I tried changing it on the image itself.

    Is there some code that I need to put in? If it’s PHP code I will need to be walked through it carefully. I am using the child theme.

    Answers

    #32748

    Alyssa
    Participant
    @alyssa-buddyboss

    @flick-chicks this code is on line 50 of content.php

    You will need to download and install the child theme. Then copy the file content.php from the parent theme into the child theme.

    Find Line 50:
    <?php the_post_thumbnail('thumbnail'); ?>

    Change it to this:
    <?php the_post_thumbnail('medium'); ?>

    if that isn’t large enough try this:
    <?php the_post_thumbnail('large'); ?>

    #32774
    @flick-chicks

    Thanks for the reply. I have tried both medium and large and neither changed the size. They were still a square and they just distorted the image within the square. All of the images are going to be the same size, I think 150w x 200h. Is it possible to set an exact size?

    #32793

    Alyssa
    Participant
    @alyssa-buddyboss

    @flick-chicks unfortunately with the way wordpress uploads images you cannot set a custom size without image distortion.

    Sorry you will also need to add this to your custom.css file:

    .entry-post-thumbnail img {
    max-height: initial;
    max-width: initial;
    padding-right: 20px;
    #32812
    @flick-chicks

    Ok, so I put in the CSS and the PHP (set to large) and there were no changes. I think I’m doing everything correctly.

    Any thoughts?

    If you’d like to see my page I can send it to you privately. It’s not ready for public consumption yet. =)

    #32817

    Alyssa
    Participant
    @alyssa-buddyboss

    @flick-chicks yes, that should work dandy.

    #32822
    @flick-chicks

    Super, can you please send me an email (I assume you have that data somewhere) and I’ll send you the page. I don’t want to post my email or webpage addresses here.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
  • The question ‘Change Featured Image Thumbnail Size’ is closed to new replies.