Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The theme resizes them with PHP.
Search for this line:
add_image_size( 'twentyfourteen-full-width', 1038, 576, true );
in this page:
http://themes.svn.wordpress.org/twentyfourteen/1.0/functions.php
to see.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Any suggestions on what can I do?
First create a Child Theme:
http://codex.wordpress.org/Child_Themes
Hi Andrew,
I will try doing those changes. Thanks for the tip on creating a child theme.
When I have issues with adding new image sizes, I find that it doesn’t work on images that have already been uploaded. You have to reupload the image for it to recognize it due to WordPress cropping and saving a copy of the image when it uploads and not during the process of calling it to the page.
Hi Andrew,
I found the line:
add_image_size( ‘twentyfourteen-full-width’, 1038, 576, true );
Any guess on what would the right value in order for the images to show properly?
I already tried diferent values and I saw no change.
Thanks!
Thanks Apput, let me check if that might be the issue.
You where right Apput, images need to be uploaded again.
Also, I see that for that line
<?php add_image_size( $name, $width, $height, $crop ); ?>
If I false for $crop, it would not crop any of my images?
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Note that you should be making your changes within your Child Theme. If you want to know how, just create a functions.php file in your Child Theme folder and within that file redeclare the add_image_size
function with your modifcations:
<?php
add_image_size( 'twentyfourteen-full-width', 1038, 576, true );
?>
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The $crop
parameter is referring to whether or not you want to hard-crop it. Hard-crop is when you don’t care about the image proportions and crop it anyway. False here would mean you want to soft-crop it.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What happens if you just pass the $name
in and forget about other parameters?