• 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

Genesis Responsive Slider – Repeating on Homepage

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 › Genesis Responsive Slider – Repeating on Homepage

This topic is: resolved

Tagged: custom widget, genesis responsive slider

  • This topic has 2 replies, 2 voices, and was last updated 10 years ago by charleybea.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 20, 2015 at 1:22 am #171609
    charleybea
    Member

    Hi there,

    I'm fairly new to customizing WordPress using Genesis and have set up a child theme and have been able to figure out how to add a new widget above the first post (with the right side column on the right) and add the genesis responsive slider into this widgetized area. I didn't have an issue until I posted a few 'dummy' posts to see how things would lay out. Now that I have more than one post on the page, I see that the slider is repeating itself above every post.

    This is the code I used and added to functions.php:

    /** Add new widget under header on homepage in Genesis theme | basicwp.com/add-new-widget-genesis-homepage/ */
    genesis_register_sidebar( array(
    'id' => 'homepage-feature',
    'name' => __( 'Homepage Feature', 'custom' ),
    'description' => __( 'This is Homepage feature section', 'custom' ),
    ) );

    /** Top Homepage feature section */
    add_action( 'genesis_before_entry', 'news_homepage_feature', 9 );
    function news_homepage_feature() {
    if ( is_home() && is_active_sidebar( 'homepage-feature' ) ) {
    echo '<div class="homepage-feature">';
    dynamic_sidebar( 'homepage-feature' );
    echo '</div><!-- end .homepage-feature -->';
    }
    }

    I'm pretty sure that this line needs edited, but I'm just not sure what I need to change it with.
    add_action( 'genesis_before_entry', 'news_homepage_feature', 9 );

    November 20, 2015 at 2:32 am #171612
    Davinder Singh Kainth
    Member

    Try replacing

    genesis_before_entry

    with

    genesis_before_loop


    Sunshine PRO genesis theme
    Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis Themes

    November 20, 2015 at 7:14 am #171621
    charleybea
    Member

    Awesome, that worked. Thank you so much!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Genesis Responsive Slider – Repeating on Homepage’ 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

© 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