WordPress.org

Forums

Hemingway
[resolved] Featured image on single post pages (8 posts)

  1. lilymariec
    Member
    Posted 1 year ago #

    Hi. For my blog, I changed the single post page so it is full-width instead of with a sidebar.

    But the featured image on the single post page is still at the same size as it was when there was a sidebar... (about 676px with). So it looks a little funny.

    How can I set it up so that the featured image shows up full size on single post pages, but still the smaller size on the main blog page?

    Thanks!!

    lily

  2. The size of your featured image is probably set in your theme.

    In order to change this, you'll need to first make a child theme and then update your full-width template with a new post thumbnail function.

    You could try the_post_thumbnail('large'); and see what that does.

  3. lilymariec
    Member
    Posted 1 year ago #

    Thank you!!! It didn't work at first, but then I tried putting in "full" (instead of "large") and it worked!

    I didn't create a child theme or anything like that.... but anyway, I'm happy to have that one resolved.

    Thanks so much for your help!

  4. Cool.. glad that worked.

    Just be careful though, that if you changed the theme file and there's a theme update, you'll lose your changes.

    Maybe the theme author will hear you and implement a solution?

  5. lilymariec
    Member
    Posted 1 year ago #

    Oh you're right. Hmm. I'm not familiar with using child themes, so... Well, I guess I'll cross that bridge when I get to it.

    Since you seem to be knowledgeable, would you have any idea how to remove the main header image from particular pages? For example, the Blog page doesn't need it, because there are already a lot of images there. I did start a thread for this, but haven't gotten any replies so far.

    Thanks again!

  6. thermolis
    Member
    Posted 12 months ago #

    Hello, sorry for joining this thread, but I tried following the instructions with no success.

    Could you kindly add some more detail?

    Many thanks
    Thermolis

  7. Anders Noren
    Member
    Theme Author

    Posted 12 months ago #

    Hi thermolis,

    Change line 16 in functions.php from:

    add_image_size( 'post-image', 676, 9999 );

    to:

    add_image_size( 'post-image', 1040, 9999 );

    Do note however that if the theme is updated, your changes will disappear. As Christine wrote, it's preferable to use a child theme to make these kind of changes.

  8. thermolis
    Member
    Posted 11 months ago #

    Hello Anders,

    I followed your instructions but with no success. Any suggestion?

    I tried on parent and child functions.php files.

    Many thanks,
    Thermolis

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.