• 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

Grid Loop Featured Images

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 › Grid Loop Featured Images

This topic is: resolved
  • This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by connie.veneracion.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • February 4, 2014 at 1:50 pm #88596
    Luci
    Member

    Hi there,

    I've been struggling for a few hours now and I'm kind of stuck on this. I want to move the featured images within my grid loop above the title of the post.
    Thing is I can add a new image above the title, but I can not remove the current one. In my opinion the following code should do the trick entirely:

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    add_action( 'genesis_entry_header', 'genesis_do_post_image', 8 );

    Unfortunately it doesn't work at all. Even if I use the grid_look as a hook it still doesn't work.
    I don't think it matters, but I'm using eleven40 pro theme.

    Can anyone help me on this?
    Thanks in advance.

    February 5, 2014 at 8:06 am #88752
    Luci
    Member

    Hmmm. Is odd that no one encountered this problem...

    February 6, 2014 at 1:55 pm #88991
    connie.veneracion
    Member

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );

    That won't work because there is a special grid loop. Should be something like

    remove_action( 'genesis_grid_loop_content', xxx

    February 7, 2014 at 12:36 pm #89168
    Luci
    Member

    Looks like there is no way to remove that image. I guess I have to remake the entire grid_loop.

    Thanks a lot for your reply though. 🙂

    February 7, 2014 at 2:59 pm #89207
    Luci
    Member

    So, here is what worked for me:

    remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
    add_action( 'genesis_entry_header', 'genesis_do_post_title', 5 );
    add_action( 'genesis_entry_header', 'my_swap_grid' , 3);
    function my_swap_grid() {
        if ( $image = genesis_get_image( 'format=url&size=grid-featured' ) ) {
            printf( '<div class="grid-featured aligncenter"><a href="%s" rel="bookmark"><img src="%s" alt="%s" /></a></div>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
        }
    }

    It was impossible to remove the teaser image from grid. I had to set it's size to 0 in the grid loop settings.

    Hope this will help someone.
    Cheers.

    February 8, 2014 at 8:03 am #89332
    connie.veneracion
    Member

    Saving your solution for future reference, Luci. 🙂 Thanks!

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