• 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

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

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

    I have a plugin that uses a page template as it's "landing" template. It builds pages for itself. I want this template to call a specific sidebar. I don't want the primary sidebar. I can't use simple sidebars because these pages are created by the plugin and not listed in the pages area of admin. Nor can I tell the template to use content-sidebar or sidebar-sidebar-content ( you know the settings ).

    1. I would like to know how I can still tell the template what to use as far as the structure (content-sidebar-sidebar). I think right now it uses the "default" of the site as it's setting. I have no way to change it. Is there code to dictate the template's output as far as it's structure?

    2. I have been using several Studio Press themes. To make a sidebar, I just add it to functions. Then I call the sidebar with PHP. I have never created a sidebar-template.php.  This site looks like it knows what it's talking about but it uses a sidebar-template.php file.

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

    Do I need to add a sidebar-"X".php and put code in it, or can I just:

    function child_sidebar_logic() {

        if ( is_page_template( 'page_blog.php' ) || is_archive() || is_single() ) {

            remove_action( 'genesis_after_content', 'genesis_get_sidebar' );

            add_action( 'genesis_after_content', 'child_get_blog_sidebar' );

        }

    }

    and register "blog" as a sidebar in my function like I normally do... I've never had to make a sidebar-"x".php when using the framework before.

    February 1, 2013 at 4:48 pm #17233
    SoZo
    Member

    That tutorial should work


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    February 1, 2013 at 6:17 pm #17263
    Joseph Lee
    Member

    I expected a one line response. I thought it would at least answer my question.

     

    The forum support is depressing. Is there no community on this framework?

    February 1, 2013 at 6:19 pm #17265
    Joseph Lee
    Member

    You know what, never mind.

     

    There is no reason to provide good customer support. This is not a continual fee basis. I understand that. Perhaps someone at Genesis should consider a subscription with better support. I really regret having purchased the framework. There is no community.

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