Tagged: x
-
AuthorPosts
-
April 4, 2016 at 11:09 am #866155
John CParticipantCan 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
—
JohnApril 4, 2016 at 6:22 pm #866757
JadeModeratorHi 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.
April 5, 2016 at 2:05 am #867206
John CParticipantI need to add sidebars to courses and lessons pages but these pages do not appear in the Sidebar setup in X.
April 5, 2016 at 4:21 am #867359
John CParticipantI 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!
April 5, 2016 at 4:32 am #867369
John CParticipantThis reply has been marked as private.April 5, 2016 at 4:49 am #867385
John CParticipantI 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
April 5, 2016 at 4:52 am #867390
John CParticipantDo 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
April 5, 2016 at 8:16 am #867607
ChristopherModeratorHi there,
Please check provided credentials as they are not matching.
Thanks.
April 5, 2016 at 11:29 am #867869
John CParticipantThis reply has been marked as private.April 6, 2016 at 3:46 am #868822
ChristopherModeratorHi 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.
April 6, 2016 at 10:17 am #869469
John CParticipantIn 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.
April 6, 2016 at 2:53 pm #869986
RadModeratorHi 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.
April 7, 2016 at 5:19 am #870899
John CParticipantHi 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 sideWould 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
—
JohnApril 7, 2016 at 12:19 pm #871518
RupokMemberHi 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!
May 9, 2016 at 8:30 pm #983351
Michal KParticipantHi 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!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-866155 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
