• 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

Remove the loop and add widget

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 › Remove the loop and add widget

This topic is: not resolved

Tagged: education

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 2 months ago by nickthegeek.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • December 19, 2012 at 8:48 am #6151
    skuglin
    Member

    Is there a way to remove the loop on the home page where the blogs are posting and replace it with a widgeted area in the Education theme?

    Thanks!

    December 22, 2012 at 2:19 pm #7024
    nickthegeek
    Member

    you can add this to your home.php file to remove the loop remove_action( 'genesis_loop', 'genesis_do_loop' );

    Then you can add a widget area.
    http://nickc.co/sidebar

    April 17, 2013 at 11:00 am #35966
    skuglin
    Member

    Thanks Nick!  I removed the loop, added the widget area to my functions file.  I just get a blank white space on the home page now (I replaced the loop since the site is live).  I must not be adding the correct widgeted area because it doesn't appear on the home page.  Do you have suggestions on how to get the new widgeted area to appear on the home page?  I just followed your tutorial 🙂

    add_action( 'genesis_after_content_sidebar_wrap', 'child_after_content_ad_sidebar' );
    /** Loads a new sidebar after the content */
    function child_after_content_ad_sidebar() {
    
    echo '<div class="after-content-ad">';
    dynamic_sidebar( 'after-content-ad' );
    echo '</div>';
    
    }
    

    AND

    genesis_register_sidebar( array(
    'id'        =&gt; 'after-content-ad',
    'name'      =&gt; 'After Content Ad',
    'description'   =&gt; 'This is a sidebar that goes after the content.',
    ) );
    

    I also added the this to the style sheet..

    /* Ad Sidebar
    ------------------------------------------------------------ */
    
    .after-content-ad {
    clear: both;
    margin: 0 auto;
    width: 728px;
    }
    

    I'm trying to add it to this site:  http://olivia.mn.us

    Thanks for any help, much appreciated!!

    April 17, 2013 at 11:06 am #35970
    nickthegeek
    Member

    what did the full home.php file look like with your edits?

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

© 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