• Resolved pedcam

    (@pedcam)


    Hi,

    I’ve noticed that Learndash’s archive and course pages pick up the sidebar layout that I’ve defined for the main page and single post pages of my website. If I change the layout to no-sidebar, Learndash follows suit. The thing is that I want to keep the sidebar layout on my site, but I don’t want Learndash to use it (I don’t want my customers to see any sidebar anymore when they enroll to take a course).

    Any tips?

    Thank you in advance, Pedro Coutinho

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi @pedcam,

    Thank you for using Neve theme.

    We do not have a dedicated code for this, however, as a hint this code could work:

    function remove_sidebar_on_category($value) {
       if( function_exists('is_product_category') && is_product_category() ) {
          return 'full-width';
       }
       return $value;
    }
    add_filter('neve_sidebar_position', 'remove_sidebar_on_category');

    It’s used to show full width (no sidebar) on the WooCommerce category page so basically, you need to replace the condition that checks is_product_category with the condition that checks if it’s the Learndash page.

    I hope it helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Integration with Learndash’ is closed to new replies.