Featured Image Default Size on Single Post

Home Forums Support Featured Image Default Size on Single Post

Home Forums Support Featured Image Default Size on Single Post

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #225856
    Bruce

    Hello Tom,

    I was running into issues with the featured image displaying at full size on single posts. I found this and it works well.

    But I am trying to super simplify this for clients (by using GeneratePress with GP Premium, and Beaver Builder), and if I use code, they would have to modify it if they wanted to change it.

    Would you consider default featured image size controls in the Customizer?

    Thanks!

    #225863
    Tom
    Lead Developer
    Lead Developer

    You can set the post image sizes in “Customize > Blog > Post Images”.

    Does that not work for you?

    Let me know πŸ™‚

    #225867
    Bruce

    Hmmmm…in Customzize > Blog

    http://screencast.com/t/3utXxk06SmM

    Am I missing something here?

    #225868
    Tom
    Lead Developer
    Lead Developer

    Is the Blog add-on activated in “Appearance > GeneratePress”?

    #225869
    Bruce

    Yes, it is activated.

    I should note that I do not have a Posts page set in Settings > Reading > Front Page Displays > A static page > Posts Page. I did try assigning it to a page, but it did not change anything. (Reason I am not using a static page for posts page is that I am using Beaver Builder for the posts page).

    I suppose it could be another plugin conflicting, but I have relatively few running.

    Any other ideas?

    Thanks for looking at this…

    #225870
    Tom
    Lead Developer
    Lead Developer

    Ah, you need to be viewing the posts page (blog) for those settings to appear.

    I’ve reversed this in the next version, but for now it’s necessary.

    So you can temporarily add a blog, change the settings and then remove it.

    #225872
    Bruce

    Ahhh… well that does explain the missing Customizer controls.

    But – when I change the setting in Customizer > Blog > Post Image, it does limit the size on the Blog archive page http://screencast.com/t/sVqiaDQQlIhP, but not on the single post page http://screencast.com/t/wRrWj8Laa1?

    #225879
    Tom
    Lead Developer
    Lead Developer

    Ah yea, there’s no global option for the single posts.

    There is a cropping option inside the Page Header metabox, but that’s for individual pages.

    I haven’t had a lot of people ask for a global option for single posts, but I’ll consider adding it as an option in the Customizer if I get a few more requests πŸ™‚

    #225880
    Bruce

    Ah… (lol), that explains that.

    Just pretend my request is really 100 different people? πŸ˜›

    It sure would be nice!

    Thanks for working this out with me.

    #225881
    Tom
    Lead Developer
    Lead Developer

    No problem – I’ll definitely consider adding it, seems like a good idea πŸ™‚

    #233714
    Thierry

    Hello,

    I have the same problem, how i can do now ?

    With GP hook and this code ?

    <?php
    if ( has_post_thumbnail() ) {
    the_post_thumbnail(‘medium’);
    }
    ?>

    but where i wirite this ?

    #233803
    Tom
    Lead Developer
    Lead Developer

    Something like this is all you need:

    add_filter( 'generate_page_header_default_size','generate_change_default_image_size' );
    function generate_change_default_image_size()
    {
        return 'medium';
    } 

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    #233834
    Thierry

    Great, thanks Tom πŸ˜‰

    #233836
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #236918
    Israel

    Hi Tom, I love this theme.
    Well, I also sign up to request the image size in single post. And if you could change the layout of the image on the title, the better.
    Sorry, my English is translated by google πŸ˜‰

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