WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bb081818
    Member
    Posted 11 months 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.
    bill

  2. Evan Herman
    Member
    Posted 11 months 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
    Member
    Theme Author

    Posted 11 months 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!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.