Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #866155
    John C
    Participant

    Can anyone point in a useful direction as to how to get sidebars working with LearnDash…course navigation etc.

    I have continually drawn an blank this afternoon.

    HELP!!!

    Cheers

    John

    #866757
    Jade
    Moderator

    Hi John,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    #867206
    John C
    Participant

    I need to add sidebars to courses and lessons pages but these pages do not appear in the Sidebar setup in X.

    #867359
    John C
    Participant

    I have allocated a custom Category ( LD – Test Course ) to the courses pages.
    I have set up a LD – Test Course Sidebar and selected the LD – Test Course Category under ALL TAXONOMIES Tab
    I have added a text widget to the Sidebar in Widgets and added some text.

    This sidebar is not appearing on the course pages.

    HELP!

    #867369
    John C
    Participant
    This reply has been marked as private.
    #867385
    John C
    Participant

    I have tried the same thing on a Normal Page ( Test Page ) and this also does not display the side

    I have, of course, selected the Sidebar left content right template for both the Test Page and the LearnDash Courses Pages

    #867390
    John C
    Participant

    Do I HAVE to select a page /post under ALL PAGES AND POSTS tab and then select Taxonomies as an additional?

    LearnDash Course pages DO NOT appear under SIDEBARS > ALL PAGES AND POSTS

    #867607
    Christopher
    Moderator

    Hi there,

    Please check provided credentials as they are not matching.

    Thanks.

    #867869
    John C
    Participant
    This reply has been marked as private.
    #868822
    Christopher
    Moderator

    Hi there,

    Thanks for providing us with credentials.

    Sidebar was working fine in test page. Does ‘Test course’ suppose to be displayed in learn dash page?

    Please provide us with URL of page in question as you have many pages in your dashboard and I don’t know which page you’re referring to, also let us know which sidebar should be displayed on that specific page.

    Thanks.

    #869469
    John C
    Participant

    In Appearance > Sidebars – you will see a ‘Test Course’ Sidebar set up for Taxonomies LD – Test Course

    Under Dashboard > LearnDash LMS > Lessons you’ll see 4 test lessons all set Sidebar Left Content Right AND to Primary Category LD – Test Course

    The Side Bar is NOT showing on these pages although the content does ‘appear’ to be Sidebar Left, Content Right. However If I change them to Sidebar Right Content Left…the layout does not change.

    Either way the Test Course Sidebar is not showing.

    #869986
    Rad
    Moderator

    Hi John,

    The 4 lessons are single post types, you only assigned your sidebar on taxonomy (such as category index page), and Test Course (a static page).

    If you wish to apply that sidebar to that specific lessons, then assign your sidebar on them too. The issue is that , the Lesson post type is not recognizable and not available from the list of page/posts. It’s not a page or post.

    We can bypass that restriction and assign the sidebar through coding, please add this code at your child theme’s functions.php

    add_filter( 'ups_sidebar', 'ups_display_sidebar_lesson', 99 );
    
    function ups_display_sidebar_lesson( $default_sidebar ) {
    
    if ( is_singular( 'sfwd-lessons' ) ) {
          return 'ups-sidebar-learning-your-stuff';
    }
      return $default_sidebar;
    
    }

    Hope this helps.

    #870899
    John C
    Participant

    Hi Rad

    Thanks. That seemed to work with the test page.
    add more sidebar how do I add them to other pages. If I had a courses sidesbar or a quizzes side

    Would you mind explaining each of the six lines of code so I can understand what we are doing here

    Do I have to add a function for each page?

    Many thanks

    John

    #871518
    Rupok
    Member

    Hi John,

    Thanks for writing back. You need to understand the if part that defines – If the page is a single course page then the special sidebar (ups-sidebar-learning-your-stuff) will be used otherwise the default sidebar will take place.

    So if you need to apply this to other page type then you need to change the if ( is_singular( 'sfwd-lessons' ) ) part.

    Hope this makes sense.

    Cheers!

    #983351
    Michal K
    Participant

    Hi John,

    I am also having trouble with setting proper sidebars. But I also struggle with choosing the proper layout for the courses/lessons. There is no option to choose the layout – it usually is on the right-hand side on the bottom of the page, but it is gone when I add new courses or lessons.

    Thanks for your help!

  • <script> jQuery(function($){ $("#no-reply-866155 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>