• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Cropped Thumbnail Images (It's NOT the Media Settings…)

Welcome!

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.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Cropped Thumbnail Images (It's NOT the Media Settings…)

This topic is: resolved

Tagged: thumbnail, visual composer

  • This topic has 1 reply, 1 voice, and was last updated 8 years ago by Pelowtz.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 21, 2015 at 1:51 pm #145106
    Pelowtz
    Member

    Hello-

    I have a Genesis theme that is calling the wrong image into the thumbnail for a featured image. It's not the media settings.

    I know this because the theme creates many different cropped versions of the same image upon upload, even more than the default. Out of all the extra image sizes and thumbnails the theme creates when you upload an image, the thumbnail image size is set to "360x200". The theme also creates a "360x165" sized image. In this case there are two image sizes in question: 360x200 and 360x165.

    Currently the theme calls the 360x200 sized image for post thumbnails. However this makes the images look cropped (see episode 47 and 48 in the URL below). After some troubleshooting I discovered that the solution would be to simply have the theme call the 360x165 sized image.

    How do I get the theme to simply call the 360x165 image for thumbnails? Is there another solution I am missing?

    BTW I am also using visual composer, which I believe is the true culprit.

    NOTE: I included the URL to the page in question, but keep in mind I have done a couple hackie solutions to make a few of them look "right". Ignore all other posts except "Episode 48" and "Episode 47". To recreate the problem, follow these steps:

    1. Use inspect element on the thumbnail image for Episode 47
    2. In the inspector, use the "edit with HTML" feature to change the image file name from "Vape-Radio-Episode-47-360x200" to "Vape-Radio-Episode-47-360x165"
    3. Observe that the image fits properly and is no longer cropped.

    Thanks for any help! This is driving me crazy!

    http://vapementors.com/vape-news-radio/
    March 21, 2015 at 3:57 pm #145125
    Pelowtz
    Member

    Fixed it! Whew!

    For those interested:

    I went into the functions.php file for my theme (not the child theme) and edited the "add_image_size" function.

    Currently the theme creates all of these image sizes (most of them are never used):

    add_image_size( 'bigger-thumbnail', 110, 80, array( 'center', 'center' ) );
    add_image_size( 'main-full', 1140, 530, array( 'center', 'center' ) );
    add_image_size( 'main-post', 750, 350, array( 'center', 'center' ) );
    add_image_size( 'main-block', 360, 200, array( 'center', 'center' ) );
    add_image_size( 'slider-1', 360, 165, array( 'center', 'center' ) );
    add_image_size( 'slider-2', 360, 195, array( 'center', 'center' ) );
    add_image_size( 'slider-3', 165, 135, array( 'center', 'center' ) );
    add_image_size( 'slider-4', 263, 350, array( 'center', 'center' ) );
    add_image_size( 'slider-5', 555, 350, array( 'center', 'center' ) );
    add_image_size( 'slider-6', 1140, 350, array( 'center', 'center' ) );

    The 'main-block' image was the culprit.

    All I had to do was change the width of the 'main-block' from 200 to 165, so now the 'main-block' crop is:

    add_image_size( 'main-block', 360, 165, array( 'center', 'center' ) ); // Main Post Image For Block Listings

    It worked perfectly! We'll see what unforeseen problems this creates in the future...;)

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Cropped Thumbnail Images (It's NOT the Media Settings…)’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble