-
Author
-
December 21, 2016 at 18:53 #147710
palicali
ParticipantHi – I want to create a new sidebar to go on a specific page. I have gone to Appearance >> Sidebars >> Create a New Sidebar, and I have created a new sidebar, but then I don’t see anywhere to add the elements to the sidebar. How do I edit and/or add elements to a sidebar?
I would also like to be able to edit the default main sidebar (or copy elements from it).
Thanks very much!
December 22, 2016 at 18:36 #147815Radu
ModeratorHi,
The new created sidebar should appear on wp-admin -> apperance -> widgets
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 30, 2016 at 08:47 #148342palicali
ParticipantYes, it now appears on that post perfectly. Thanks!
Follow up question: I have a blog section with generic posts and an eLearning section with instructional posts. I want to show my new sidebar on the eLearning posts but not on the regular posts. That is happening fine. However, I also want the new sidebar to show on the Category Archives page for the eLearning posts as well. Is that possible, to code the new sidebar to appear only on certain Archive pages?
I’m not sure I am setting up the eLearning properly. I am just creating posts – is that correct? Or is there a different template?
December 30, 2016 at 19:00 #148363palicali
ParticipantSo, to make the follow up question more clear:
– Is there a way to apply the sidebar to individual category archive pages and not others?
– If not, then do I need to create a regular page for my category archive and put a post element on it with the category of post and then put the sidebar on that page?Thanks!
January 2, 2017 at 00:53 #148466palicali
ParticipantBasically, I am using all elements of Kleo: social network, directory, magazine, and eLearning and am trying to figure out how to make side bars coordinate with each section. The solution above works on pages and posts, but is there a solution for Archive pages that fall into different section categories (e.g., magazine vs eLearning). Sorry, I’ve asked the same question three ways now, just wanted to make sure i was being clear.
January 4, 2017 at 16:59 #148719Radu
ModeratorHi,
In this case, you will have to tweak directly in the sidebar specific file adding specific rules for your case
Create a file named sidebar.php in this location: /kleo/wp-content/themes/kleo-child/sidebar.php
Then add this content in child theme: http://pastebin.com/raw/jdBm9sdq
course-sidebar and lesson-sidebar represents the names of the sidebars that are or can be created from wp-admin -> appearance -> sidebars
Using this you should be able to use the sidebar in specific post types like courses and lessons that it’s an example code snippet, you can change that to achieve what you need.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.