Hello
I have one problem with media size using Travelify theme. I set new Media image size in Settings–>Media:
Thumbnail size: width 230px height: 230px
Medium size: width 620px height: 620px
Large size: width 1000px height: 1000px
But now during post editing when I try to add big image (e.g. 2032x1361px) there is some strange issue. Image is added to Media Library without any problem, but if I want to add this image to post there is problem. I have sizes to use:
Thumbnail - 230px
medium - 620x415px
large - 700x469px
Full size - 2032x1361px
So the problem is with “large” one - it should be 1000px not 700px. Moreover image size 1000px IS generated by wordpress (I can see it in /uploads/ folder.
Additionaly when I choose “large” and I add image to post it will generate this code:
<a href="http://www.mleko.mu/wp-content/uploads/2014/12/azory-przyroda-zdjecia-2000px.jpg"><img src="http://www.mleko.mu/wp-content/uploads/2014/12/azory-przyroda-zdjecia-2000px-1000x670.jpg" alt="azory-przyroda-zdjecia-2000px" width="700" height="469" class="aligncenter size-large wp-image-78" /></a>
So you can easily see that 1000px image is generated and 1000px is used but in html code wordpress puts width=“700” height=“469” instead of width=“1000” height=“670” …
Do you know how to fix it?*
- I found one way to fix it. I need to change
this
if ( ! isset( $content_width ) )
$content_width = 700;
from function.php to
if ( ! isset( $content_width ) )
$content_width = 1000;
But I dont know if changing it will not cause problems with something else?