• 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

Changing the size of the featured image

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 › Design Tips and Tricks › Changing the size of the featured image

This topic is: resolved

Tagged: Author Pro

  • This topic has 2 replies, 2 voices, and was last updated 7 years ago by Emilio.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 15, 2016 at 10:42 pm #176663
    Emilio
    Member

    I am in the process of updating my site to the Author Pro child theme. I having my front page change frequently using the Genesis post and page widgets. It appears that if a featured image is smaller than 800 * 800 the image will display properly; if the image is larger, it will display in the 800 * 800 window.

    What I would like to do is have an option to display a featured image at 1024 * 576 which is a 16:9 aspect ratio. I tried adding the following line to functions.php directly after the 800 * 800 line.

    add_image_size( 'featured-content', 800, 800, TRUE );
    add_image_size( 'featured-content', 1024, 576, TRUE );

    That changed the featured image drop down to 1024 * 576, but I lost the 800 * 800. Also, the image did not resize to 1024 * 576.

    Can someone give me the correct code to enter to have an additional featured image choice of 1024 * 576. Also, if I use that size on the front page in the first widget area, will that throw everything else off?

    http://dev.emiliocorsetti.com

    http://dev.emiliocorsetti.com
    January 16, 2016 at 12:50 am #176668
    Marcy
    Participant

    You need to give the image size a different name; you're writing over 'featured-content' image.

    Add this to functions.php instead:

    add_image_size( ‘featured-content’, 800, 800, TRUE );
    add_image_size( ‘featured-content-2’, 1024, 576, TRUE );

    OR

    add_image_size( ‘featured-content’, 800, 800, TRUE );
    add_image_size( ‘featured-content-large’, 1024, 576, TRUE );

    Marcy | Amethyst Website Design | Twitter

    January 16, 2016 at 11:07 am #176685
    Emilio
    Member

    Marcy,

    Thank you. That worked.

    Emilio

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Changing the size of the featured image’ 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