• 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

Help with feature image in Generate Pro

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 › Help with feature image in Generate Pro

This topic is: resolved

Tagged: featured image, generate pro

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 2 months ago by deirdre.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • January 29, 2015 at 2:52 pm #138984
    webcami
    Participant

    I'm trying to get the feature image on this homepage to have the text line up next to it - as it does with most StudioPress themes.

    The original setting is 700x300 which I have changed in the functions to be 150 x150:

    /* Add new image sizes
    add_image_size( 'blog', 150, 150, TRUE );

    How can I get the text to wrap correctly on excerpts? I can't figure it out.

    Thanks for any help!

    http://westseattlewordpress.com/shordental/
    January 30, 2015 at 1:38 am #139017
    deirdre
    Member

    Your div.featured-image is 618px wide, which has to be a factor. Changing the image size just changes the image size, not the CSS.

    January 30, 2015 at 7:53 am #139041
    webcami
    Participant

    The closest reference to that I can find in the css is:

    .entry-content .entry-image {
    margin: 0 40px 40px -60px;
    max-width: 700px;
    }

    There is no featured-image size call in the style.css - can you send exactly what you found? I made the change below but it made no difference in the code at all.

    .entry-content .entry-image {
    margin: 0 40px 40px -60px;
    max-width: 150px;
    }

    I'm using Chrome inspect element to debug. Can you send the exact code you found with that call so I can change it? A search of style.css shows no reference to .featured-image - I also tried adding it:

    .featured-image {
    width: 150px;
    }

    Any further assistance would be appreciated.

    January 30, 2015 at 10:09 am #139049
    webcami
    Participant

    Okay - for anyone else trying to fix this. Here's what I did - I removed the following code from the functions.php file:

    //* Remove default post image
    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );

    //* Add featured image above the entry content
    add_action( 'genesis_entry_content', 'generate_featured_photo', 8 );
    function generate_featured_photo() {
    if ( is_page() || ! genesis_get_option( 'content_archive_thumbnail' ) )
    return;

    if ( $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
    printf( '<div class="featured-image">%s</div>', $image, the_title_attribute( 'echo=0' ) );
    }
    }
    And that made the featured image line up properly with the text.

    February 1, 2015 at 2:12 am #139231
    deirdre
    Member

    Sorry, had a heck of a day, but I'm glad you figured it out!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Help with feature image in Generate Pro’ 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

© 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