- This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I keep adding a photo to a post in the Prose child theme, but the theme resizes the image so it doesn't stretch across the width of the post. Is there some code somewhere I can add to make images fit the post? Where would the code go?
Otherwise, where is the setting to control this. I looked at the various settings and couldn't find out how to prevent this automatic resizing. The image was big enough to fit the width of the post. I looked at the code in the post, but my manipulations prevented the photo from being displayed.
At two places you can configure media (images) size settings:
1. In WordPress dashboard goto Settings > Media
2. Goto Apperance > Edit and open functions.php file - then look for following code:
/** Add new image sizes */ add_image_size( 'home-bottom', 110, 110, TRUE ); add_image_size( 'home-middle-left', 280, 165, TRUE ); add_image_size( 'home-middle-right', 50, 50, TRUE ); add_image_size( 'home-tabs', 150, 220, TRUE );
I couldn't find that code in any php file, but I noticed when designing the post, there are options to insert a medium or large image size into the post. I was able to get the full size images to show.
I did go to Settings > Media and tried to change the specified dimensions for each size, but that didn't seem to do anything.
© 2022 WPEngine, Inc.