How to show Template with left sidebar on some pages and not others when using LearnDash

Hi,

I’m implementing LearnDash on a site and basically on some pages (Lessons) I want to display a sidebar on the right that shows a outlines of the lessons in the course so they navigate back to past lessons easily.

However on the other LearnDash pages I want the full width template.

I’ve set under Theme Options -> Layout and Design for the Content Layout to be Fullwidth, I did set that to “Content Left, Sidebar Right” but then obviously that changed all the pages. I did try to hide the sidebar using css but everytime I made a change there it threw up a new formatting problem, and I hadn’t even moved onto different screen sizes yet.

I have created a sidebar and assigned that to Post Type “Lessons” but that doesn’t appear to show unless I set the Content Layout to be a sidebar.

Do you have any ideas how I can show a sidebar conditionally for certain post types and show Fullwidth for all others?

Many Thanks

I’ve just noticed I made an error in the title, I mean right sidebar!

It should read “How to show page with right sidebar page template…”

Apologies!

Hello Rowena,

Since LearnDash is a third party plugin, we are not familiar how its template system works but perhaps learndash pages use their own template files. It would be best to get in touch directly with LearnDash regarding this query as they may be able to answer this with more detail since you are trying to change the layout of the single pages generated by the plugin.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.