• 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

Featured/Post Image Sizing Help

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 › Featured/Post Image Sizing Help

This topic is: resolved
  • This topic has 2 replies, 1 voice, and was last updated 11 years, 7 months ago by zshornick.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 27, 2013 at 9:47 pm #69384
    zshornick
    Member

    Hey everyone,

    I'm having an issue with my Featured/Post Images staying at a full size and was hoping someone could help.

    If you look here: http://clients.impulsemediastudio.com/praxischiro/chiropractic/ you can see that the Featured image is aligned left with a little gap. The image, however, is meant to be the full width at 700x290. It works with my slider widget on the homepage here: http://clients.impulsemediastudio.com/praxischiro/

    I have sized the image myself, regenerated thumbnails, and adjusted the CSS and functions, but to no avail. My code is below. Does anyone have any advice?

    FUNCTIONS

    /** Add new image sizes */
    add_image_size( 'post-image', 700, 290, TRUE );
    
    /** Add Post image above post title, single posts only */
    add_action( 'genesis_before_post', 'agency_post_image' );
    function agency_post_image() {
    
    if ( is_category() ) return;
    if ( has_post_thumbnail() ) {
    if ( $image = genesis_get_image( 'format=url&size=post-image' ) ) {
    printf( '<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
    }
    }
    }

    CSS

    .post-image {
    	margin: 0px;
    	width: 700px;
    	height: 290px;
    }
    http://clients.impulsemediastudio.com/praxischiro/
    October 27, 2013 at 9:50 pm #69386
    zshornick
    Member

    I have also tried the following CSS:

    .post-photo {
    	margin: 0px;
    	width: 100%;
    	height: 100%;
    }
    

    and

    .post-photo {
    	margin: 0px;
    	width: 700px;
    	height: 290px;
    }
    
    October 27, 2013 at 9:54 pm #69388
    zshornick
    Member

    I figured it out. Sorry. min-width worked. just need to set different css for responsive resolutions

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

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