[resolved] Change image size on main featured post (3 posts)

  1. bb081818
    Posted 2 years ago #

    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.

  2. Evan Herman
    Posted 2 years ago #

    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

  3. Konstantin Kovshenin
    Theme Author

    Posted 2 years ago #

    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 460x260 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!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.