Support » Theme: Expound » Change image size on main featured post

  • Resolved bb081818

    (@bb081818)


    Hi- I like the layout of the expound theme. However, how do i change the very first image on top of blog to be larger? I just want this one to be larger and more uniform.
    the 4 vertical columns with pictures is fine and i like it and want to leave these alone.
    thank you for your help.
    bill

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you provide a link to your site for review? I am not familiar with ‘Expound’ and the demo link of the theme does not contain pictures

    Theme Author Konstantin Kovshenin

    (@kovshenin)

    Hey Bill, it’ll be fairly tricky to change the image size, but here’s what you’ll have to do. Firstly, you’ll need to give the main featured content image more space, by default it’s set to 50%, so here’s how you would go up to 100% with some custom CSS:

    .featured-content .has-post-thumbnail .entry-thumbnail { width: 100%; }

    Then you would need to modify the image size for the large thumbnails, which are registered at 460×260 by default. You can add a new image size in a child theme’s functions.php file, like so:

    add_image_size( 'my-expound-featured', 560, 360, true );

    Finally, you’ll have to make sure the new size is used in your theme, so copy the featured-content.php file to your child theme, open it and find the following piece of code:

    the_post_thumbnail( 'expound-featured' );

    And change expound-featured to my-expound-featured. Note that WordPress will not automatically slice your old images to the new size you have specified, so you’ll have to regenerate thumbnails to see your new size in action.

    Learn more about child themes here. Hope that helps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change image size on main featured post’ is closed to new replies.