Community Forums › Forums › Archived Forums › Design Tips and Tricks › sidebar for "blog" template
Tagged: blog template, sidebar; widgets
- This topic has 3 replies, 2 voices, and was last updated 13 years, 3 months ago by
ladybug.
-
AuthorPosts
-
February 20, 2013 at 6:44 am #21621
ladybug
MemberI am using the Enterprise Child Theme. Rather than having the "categories" in the secondary menu, I have a page link in the menu called "Blog" that links to ALL posts. I assigned that page the "blog template".
Now I need to add the category, archive, recent posts, etc. widgets on the sidebar of just the "blog template".
In the Enterprise Child Theme, Under appearance > widgets, there is only the ability to adjust widgets for the home page.
How would I add widgets to only the "blog template" layout?
February 20, 2013 at 8:41 am #21641Sridhar Katakam
ParticipantInstead of setting "Blog" Template to that Page, I think it is better to do it the standard WordPress way, which is to go to Settings -> Reading and set it as Posts page.
Then install a plugin like Widget Logic and write if conditionals so that widgets appear only on the Posts page.
Ex.:
is_home()Enter that in Widget Logic's field in any widget and that widget will appear only on the Posts page.
is_front_page()is the condition to use for site's homepage (front page).
February 20, 2013 at 12:26 pm #21726ladybug
MemberSridhar,
I am not really understanding what you are saying to do.
I took off the “blog template” layout setting to my page named "Blog" and set the template for that page back to the default.
Then I went to Settings -> Reading like your instructions said, there I am not sure what you mean for me to do.
By default (as already set by the Enterprise Child Theme) the settings were as follows:
For "Front page displays" the radio button is selected as "Your latest posts"
I thought perhaps you meant for me to instead select the radio button for "A static page (select below)"
So I tried doing that.... then for the "select below", for "Posts page:", I selected "Blog".
The result of doing the above was that clicking on the Blog link in the navigation opened a page named "Blog", but now there are no posts there. So I don't think that I accomplished what you meant. wHERE DID i GO WRONG?
Additionally, looking at the Widget Logic plugin, I see that they state : "PLEASE NOTE The widget logic you introduce is EVAL'd directly. Anyone who has access to edit widget appearance will have the right to add any code, including malicious and possibly destructive functions." ..... NEEDLESS TO SAY, IT SOUNDS LIKE THIS WIDGET HAS PROBLEMS.
February 20, 2013 at 12:49 pm #21733ladybug
MemberOkay, May have taken care of the problem.
I left the setting in Settings -> Reading as it appeared by default in the theme.
I installed "Simple Sidebars" Plugin
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.