This topic has 5 replies, 2 voices, and was last updated 8 years by Radu.

  • Author
  • #147710
     palicali
    Participant

    Hi – 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!

    #147815
     Radu
    Moderator

    Hi,

    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 solution
    #148342
     palicali
    Participant

    Yes, 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?

    #148363
     palicali
    Participant

    So, 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!

    #148466
     palicali
    Participant

    Basically, 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.

    #148719
     Radu
    Moderator

    Hi,

    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
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?