• 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

Center 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 › Center the Featured Image

This topic is: resolved

Tagged: Altitude Pro, featured image

  • This topic has 8 replies, 3 voices, and was last updated 9 years, 7 months ago by chrisjeub.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • August 2, 2016 at 8:32 pm #190671
    chrisjeub
    Participant

    I'm trying to find the CSS necessary to change the left-align featured images to CENTER. This is very important to my site layout, especially because I use the full-screen layout of Altitude Pro.

    Could someone help?

    https://monumentpublishing.com
    August 2, 2016 at 8:41 pm #190672
    Genesis Developer
    Member

    Genesis have "genesis_attr_entry-image" attributes filter. Using it you can alter the default attributes of the image. Add this code in your functions.php file. Hope that it will help you.

    add_filter( 'genesis_attr_entry-image', 'gd_center_align_entry_image' );
    function gd_center_align_entry_image( $atts ) {
       $atts['class'] = "aligncenter";
       return $atts;
    }

    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 3, 2016 at 4:38 am #190684
    chrisjeub
    Participant

    This didn't work. See https://monumentpublishing.com/gold-season-17-release-1/ for an example. You will see the image floats left.

    August 3, 2016 at 5:55 am #190686
    Genesis Developer
    Member

    Are you added the image inside the WP Editor? or it is a featured image?


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

    August 3, 2016 at 6:53 am #190688
    chrisjeub
    Participant

    It's a featured image.

    August 3, 2016 at 10:34 am #190700
    chrisjeub
    Participant

    Do you know how to fix it? I suspected CSS advice, but a Function change will work too. I just need to get that featured image centered.

    August 5, 2016 at 3:53 am #190766
    chrisjeub
    Participant

    I guess what I'm asking is how do I change the attributes of the Featured Image in the Altitude Pro CSS. I very much want direction in this, if you can help.

    August 5, 2016 at 6:11 pm #190808
    BYW
    Member

    .entry-content .attachment-post-image {
    display: block;
    margin: 0 auto;
    }

    Does that work ? Does it affect anything else in the site it shouldn't?


    We’ve been building WordPress Websites with Genesis since 2009.
    Need some help? We love working with Woocommerce and Genesis

    August 6, 2016 at 4:33 am #190823
    chrisjeub
    Participant

    Splendid! Thank you, BYW. I made a small adjustment to put some padding in the bottom margin, but now it's centered. Thanks again.

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