Community Forums › Forums › General Discussion › Template & Sidebar
This topic contains 3 replies, has 2 voices, and was last updated by Joseph Lee 3 months, 2 weeks ago.
-
AuthorPosts
-
February 1, 2013 at 4:02 pm #17217
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:
functionchild_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 #17233February 1, 2013 at 6:17 pm #17263I 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 #17265You 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.
-
AuthorPosts
You must be logged in to reply to this topic.