• 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

How can I add a Widget just to my Blog Page?

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 › General Discussion › How can I add a Widget just to my Blog Page?

This topic is: not resolved
  • This topic has 6 replies, 2 voices, and was last updated 9 years, 7 months ago by Philbeaux.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 15, 2016 at 9:22 am #189537
    Philbeaux
    Member

    I just created a Footer Header Widget. How can I set it so it only appears on my Blog Page?

    http://www.nosaintshistory.com
    July 15, 2016 at 3:24 pm #189555
    Susan
    Moderator

    This guide should help: https://www.nutsandboltsmedia.com/how-to-add-a-widget-area-to-a-page-using-genesis/

    July 15, 2016 at 5:25 pm #189565
    Philbeaux
    Member

    The only problem with that guide is it doesn't cover adding a widget to my Homepage, which is what I'm trying to do.

    The code I originally used is

    //Extra Widget Area
    function genesischild_footerwidgetheader() {
    	genesis_register_sidebar( array(
    	'id' => 'footerwidgetheader',
    	'name' => __( 'Footer Widget Header', 'genesis' ),
    	'description' => __( 'This is for the Footer Widget Headline', 'genesis' ),
    	) );
    
    }
    
    add_action ('widgets_init','genesischild_footerwidgetheader');
    
    //Position Widget Header
    function genesischild_footerwidgetheader_position ()  {
            echo '<div class="footerwidgetheader-container"><div class="wrap">';
    	genesis_widget_area ('footerwidgetheader');
    	echo '</div></div>';
    
    }
    
    add_action ('genesis_before_footer','genesischild_footerwidgetheader_position', 5 );
    

    The above code worked just fine, but it put the Footer Header everything.
    How can it be edited to put the widget on just my Home Page? What would the ID of my Home Page?

    July 15, 2016 at 9:59 pm #189573
    Susan
    Moderator

    I apologize for the confusion - in your first post, you requested it be added to your blog page; now you're requesting home page? Is your home page using front-page.php (or do you have a static home page?

    July 16, 2016 at 6:21 am #189590
    Philbeaux
    Member

    Maybe I'm not clarifying them correctly. I'm still pretty new to WordPress.

    My Home Page is a page of my latest posts and that is what I want to add the widget to.

    July 16, 2016 at 6:55 pm #189628
    Susan
    Moderator

    No problem. Do you have a front-page.php file? Is so, create a widget, and then hook it into the front-page.php file: http://my.studiopress.com/tutorials/register-widget-area/

    July 19, 2016 at 6:12 am #189784
    Philbeaux
    Member

    Susan, sorry just now getting back to this.

    No, I do not see a front-page.php. I am using the Genesis-Sample theme

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ 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