• 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

Problem with featured image position

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 › Problem with featured image position

This topic is: not resolved

Tagged: loop

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by Genesis Developer.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 19, 2014 at 12:19 pm #119821
    rougebaby
    Participant

    Hi guys!

    I'm using loop and I want to position my featured image above the title and I don't want it to show any content. So it's just featured image, title and meta info.

    Below is the code I placed in front-page.php:

    <?php

    //* Add support for Genesis Grid Loop
    remove_action( 'genesis_loop', 'genesis_do_loop' );
    add_action( 'genesis_loop', 'child_grid_loop_helper' );
    function child_grid_loop_helper() {
    if ( function_exists( 'genesis_grid_loop' ) ) {
    genesis_grid_loop( array(
    'features' => 0,
    'feature_image_size' => 0,
    'feature_image_class' => 'alignleft post-image',
    'feature_content_limit' => 0,
    'grid_image_size' => 'medium',
    'grid_image_class' => 'aligncenter post-image',
    'grid_content_limit' => 0,
    'more' => __( '[Continue reading...]', 'genesis' ),
    ) );
    } else {
    genesis_standard_loop();
    }
    }

    //* Remove the post meta function for front page only
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );

    genesis();

    August 19, 2014 at 12:33 pm #119825
    Genesis Developer
    Member

    add this two lines

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

    after this line

    
    //* Remove the post meta function for front page only
    remove_action( 'genesis_after_post_content', 'genesis_post_meta' );

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

  • 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

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