• Hi,
    I can’t figure out why images are not showing 100% on homepage.
    The images are uploaded correctly and the width of an image is just fine. I already turned off all plug-ins to see if it has to do with it, and still it doesn’t show the images fully. Any suggestions on what can I do? site is http://www.granmeme.com

    Thanks to all!

Viewing 10 replies - 1 through 10 (of 10 total)
  • 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

    Thread Starter Granmeme

    (@granmeme)

    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.

    Thread Starter Granmeme

    (@granmeme)

    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!

    Thread Starter Granmeme

    (@granmeme)

    Thanks Apput, let me check if that might be the issue.

    Thread Starter Granmeme

    (@granmeme)

    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?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘image height not showing properly’ is closed to new replies.