• Howdy!

    Here’s what I’m trying to do. I have a site that is 960px wide. The content column is 600px wide.

    What I want to do is add images within posts that stretch all 960px across. But no matter what I do, no matter how large I tell the images to be, they are being cropped to 600px.

    My Settings > Media sizes are:

    Thumbnail: 150×150
    Medium: 300×300
    Large: 102×1024

    I also have this in my functions.php (picked it up from another thread):

    global $wp_version;
    
    if ( version_compare( $wp_version, '3.6', '>=' ) ) :
    add_theme_support( 'content-width', 960 );
    else :
      if ( ! isset( $content_width ) )
        $content_width = 960;
    endif;

    Nothing has been of any avail. When I look at the image with Google’s Dev Tools, it says the width is 600px but that the “Natural” width is 2400px (or whatever).

    So it appears WordPress is cropping my images somewhere unbeknownst to me.

    Any ideas? Thanks a million for the help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter gobyfish

    (@gobyfish)

    Just an edit:

    My large image settings are 1024×1024, not 102×1024 as stated in the original.

    That was a typo. The issue continues.

    What theme are you using? Where did you download it from?

    Thread Starter gobyfish

    (@gobyfish)

    Hey, esmi!

    I’m using Volatyl from VolatylThemes.com. Super solid theme.

    I’m glad to are happy with your theme but as you are using a commercial theme, you need to seek support from the theme’s developer/vendor. We do not have access to, nor do we support, commercial products here.

    Thread Starter gobyfish

    (@gobyfish)

    Thanks, esmi.

    I just activated Twenty Thirteen, brought over the appropriate CSS and functions.php lines. I also regenerated the images.

    The issue remains. It doesn’t seem to be a theme issue. Twenty Thirteen is cropping the image at 604px.

    In the 2013 theme, images are deliberately constrained to 604px both in the theme’s functions.php file and by the theme’s CSS. You need to contact your commercial theme’s developers to see if anything similar is being used in their theme.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress cropping media images’ is closed to new replies.