• 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

how to change featured image size

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 › how to change featured image size

This topic is: not resolved
  • This topic has 1 reply, 2 voices, and was last updated 10 years, 11 months ago by pxforti.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 7, 2015 at 9:49 am #158671
    gswartz
    Member

    We're using the agentpress pro theme and uploading a featured image of 1664x700. Instead of using the image as is, it's cropping it to 1664x500. How can we make it use the featured image size as is or the image size we added to the functions file and not resize it? We've added in the following code to the functions file. Thanks.

    add_image_size( 'agentpress_featured_img', 1664, 700, TRUE );
    function agentpress_featured_img() {
    if ( has_post_thumbnail() ) { // checks post has thumbnail
    // gets URL for that image
    $background = wp_get_attachment_image_src( get_post_thumbnail_id( $page->ID ), 'featured-banner' );
    if (is_array($background)) {
    // echo the output
    echo '<div class="features" style="background: url(' ;
    echo $background[0];
    echo ') no-repeat scroll center center #FFFFFF; background-size: cover;">';
    genesis_widget_area( 'tagline-bar', array(
    'before' => '<div class="features-widgetarea"><div id="tagline-bar"><div class="wrap">',
    'after' => '</div></div></div>',
    ) );
    echo '</div>';
    }}
    else { // if no featured image, adds class to use default image
    echo '<div class="features">';
    genesis_widget_area( 'tagline-bar', array(
    'before' => '<div class="features-widgetarea"><div id="tagline-bar"><div class="wrap">',
    'after' => '</div></div></div>',
    ) );
    echo '</div>';
    }}
    `

    http://philipsrecruiting.com/wordpress/?page_id=14
    July 8, 2015 at 12:08 pm #158820
    pxforti
    Participant

    open /wp-content/themes/your-theme/functions.php and find this code:

    add_theme_support( 'custom-header', array(

    You can adjust the featured image size there. You will have to upload the image again.


    writeNowDesign
    WordPress and Ecommerce Website Design

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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