How can I create a sidebar for a non front page different then the others?
AnonymousFebruary 26, 2013 at 3:26 pm #6921
I have two sides to my website: the Blog on the one site and my business on the other. I have choosen to have the Business profile to be the front page and have created widget filled sidebars accordingly. Now for both parts of the side I would like to use different sets of widgets. If I get to a blog page I would like to get the sidebar corrosponding with the blog but that is not what get:
front page (busienss): fp side bar, body
child page (business): sb 2, body <== this should be equaul to fp sb! for sb 2 is dedicated to blog
blog: sb 2, body
child page blog sb 2, body
I have tried various combinations of front page vs others, various page layouts (including the 3 colomn ones) bu to no avail.
AnonymousFebruary 27, 2013 at 6:48 pm #36180
and I thought WordPress was a relatively easy platform….
I have a list of page id’s that need side bar #1 (with multiple widgets and always the same) and I have a list of page id’s that need side bar #2 (dito). If I understand widget logic correctly i can turn a specific widget on or of for a given page within a sidebar (or whatever logic makes it appear or disappear). Is there not a more economic way of declaring what side bar as a whole has to appear on what page? Or am I missing the point of widget logic?
again much obliged for your answer and help.
It sounds like this is your issue:Quote:Now for both parts of the side I would like to use different sets of widgets.
It sounds like you want different sidebars, not a different set of widgets. Is that correct? If so, you might just want to use some custom templates.Quote:and I thought WordPress was a relatively easy platform….
Well…relative to how well you know it. I still spend a lot of time scratching my head.
AnonymousFebruary 28, 2013 at 6:40 am #36182
templates…I use the templates given by Graphene, and with that combiation I can not create the sidebar/content combinations I need. I was not aware that one can create custom templates. although even though it seems logical taht if graphene can create templates the user should be able to do so as well. I will investigate this option further.
AnonymousFebruary 28, 2013 at 2:09 pm #36183
After some study on the topic I came to the conclusion that I need to have a new template with a specific sidebar (i.e. which will solve my problem most eloquently looking at the work-flow afterwards; I just have to assign the new template to a given page, presto): two questions arise:
1) I need to register a new sidebar #3 ( NB I have the code available via a generator, but i am not sure in what php file in graphene I have to put it in. ) Just the template_functions.php? It does not seem to be in line with other code inthere… And i can not find the register_sidebar action anywhere else.
2) I need to create a new/additional template that then needs to be hooked up to the sidebar #3. I thought of copying a given, in this case, tow column, graphene template, rename and then link the template to the sidebar. Where and how is this link established?
AnonymousMarch 1, 2013 at 7:40 am #36185
I have had a look at the widget logic plugin, also lookalikes. I came to the conclusion that just having a new template and a new sidebar would not only solve my problem 1:1 but also would be much less work to create AND to maintain. If I understand widget logic correctly i have to declare for every widget in every sidebar when and where to popup or just to disappear.
AnonymousMarch 1, 2013 at 10:09 am #36186
after again spending some hours being stubborn and trying to do it my way, I decided to give the widget logic plug in a second chance. guess what? solved my puzzle in 10 minutes…
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.