• 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

Sidebar

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 › Sidebar

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 13 years, 2 months ago by Joseph Lee.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 12, 2013 at 12:56 pm #19864
    Joseph Lee
    Member

    I am trying to avoid having to create a sidebar.php to call a specific sidebar to a page template. As detailed here:

    http://dreamwhisperdesigns.com/genesis-tutorials/load-sidebar-specific-pages/

     

     

    (custom page)(assume I register rets-sidebar in function.php)
    /** Remove default sidebar & Add rets sidebar */
    remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
    add_action( 'genesis_sidebar', 'rets_landing_widget' );
    function rets_landing_widget() {

    echo '<div id="rets-sidebar">';
    dynamic_sidebar( 'rets-sidebar' );
    echo '</div><!-- end #rets-sidebar -->';
    }

    Will this work? I have seen a function call a sidebar to a homepage without creating a "X"-sidebar.php. I don't see why I can't create a sidebar in function.php then put it in a function then put the function in an add.

     

    Please if someone that has mad PHP skills/Genesis can comment on this. I am terrified to try (throw a php error on a live site). I don't know if this works why I would ever WANT to upload another file in my theme... In fact, give me my pros vs cons on why Dream Whisper Designs chose to do it her way and not this more simple way?  <--- No knock on this developer. Her site is remarkably well designed!

    February 12, 2013 at 1:33 pm #19875
    Brad Dalton
    Participant

    You want the custom sidebar on the homepage?

    Which url?


    Tutorials for StudioPress Themes.

    February 12, 2013 at 1:34 pm #19876
    Joseph Lee
    Member

    I need the custom sidebar to appear on a template. I have a plugin that runs and generates pages dynamically. So I can't select the pages created in the pages area of admin. I can just call the sidebar from the template so it will pull the correct one.

     

  • 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