• 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

Choosing different sidebar for home page (latest posts)

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 › Choosing different sidebar for home page (latest posts)

This topic is: resolved

Tagged: Genesis Simple Sidebars, home sidebar

  • This topic has 2 replies, 2 voices, and was last updated 10 years, 11 months ago by paulag01.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 4, 2015 at 12:34 pm #139674
    paulag01
    Member

    I thought I had found the solution to my problem here on this thread:

    Custom sidebar per page?

    But it isn't quite doing it for me.

    I have a site where home page = latest posts. I want that page to display a sidebar other than the default (it is the sidebar I have on all the other pages which I could choose one page at a time). I am using Genesis Simple Sidebars.

    But I am using this code:

    /** Change out default sidebar on home page */
    function pg_change_genesis_sidebar() {
    if ( is_home() ) {
    remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); //remove the default genesis sidebar
    add_action( 'genesis_sidebar', 'pg_do_sidebar' ); //add an action hook to call the function for my custom sidebar
    }
    }

    //Function to output my custom sidebar
    function pg_do_sidebar() {
    dynamic_sidebar( 'home-pages-sidebar' );
    }

    Where the 'home-pages-sidebar'
    is the slug for the sidebar I created in Genesis simple sidebar.

    The URL is: http://socialmediajustforwriters.com/

    But I will temporarily change back the sidebars I created (yet again) because I can't have the pieces missing that I need temporarily on the clients site.

    What am I missing to make this work?

    Thank you!
    _Paula

    http://socialmediajustforwriters.com/
    February 5, 2015 at 5:02 pm #139875
    Tom
    Participant

    This could be easier than you think with the Genesis Simple Sidebars plugin.

    1. The Plugin:
    Install and activate the plugin.
    Use the plugin to create a new sidebar. Let's call it "Home Page Primary".
    Fill the new sidebar with your content for "Home".

    2. The Pages:
    Create a new page called "Home Page Blog".
    Set "Page Attributes > Template" to "Blog".
    Set the "Sidebar Selection" to "Home Page Primary".

    3. The Settings:
    In "Reading > Settings"; Set "Front page" to "Home Page Blog"; set "Posts page" to "Blog Page".

    Edit: ...
    4. Undo the code you've added earlier.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    February 6, 2015 at 7:14 am #139938
    paulag01
    Member

    Thank you so much Tom!

    Mentally I was thinking how do I make the home page and blog page (given they are all latest posts) "different". This solution worked like a charm.

    Thanks for simplifying!

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