• Resolved lilymariec

    (@lilymariec)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter lilymariec

    (@lilymariec)

    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!

    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?

    Thread Starter lilymariec

    (@lilymariec)

    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!

    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

    Theme Author Anders Norén

    (@anlino)

    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.

    Hello Anders,

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

    I tried on parent and child functions.php files.

    Many thanks,
    Thermolis

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Featured image on single post pages’ is closed to new replies.