• Resolved ulf01

    (@ulf01)


    I have had no time the recent days for LifterLMS but now, looking at this again I wonder if I am somehow too stupid? There is just no decent Sidebar and I struggle to configure it. I don’t manage to configure it properly for my own course page and the LifterLMS example page shows the sidebar at the bottom of the page, not on the side. This is with the “Total” Theme, as explained before. To make it short: ?I am still stuck. Sidebar not working.

    The following php snippets are active

    — (1.) LMSSidebar_ThemeSupport —

    function my_llms_theme_support(){
    add_theme_support( ‘lifterlms-sidebars’ );
    }
    add_action( ‘after_setup_theme’, ‘my_llms_theme_support’ );

    — (2.) LMSSidebarConnect —

    function my_llms_sidebar_function( $id ) {

    // $sidebar = 'primary-widget-area'; // left side
    $sidebar = 'secondary-widget-area'; // right side

    return $sidebar;
    }
    add_filter( ‘llms_get_theme_default_sidebar’, ‘my_llms_sidebar_function’ );

    — (3.) LMSSidebar_layout —

    add_action( ‘wpex_post_layout_class’, function() {
    if ( is_singular( ‘course’) ) {
    $layout = ‘right-sidebar’;
    }
    return $layout;
    }, 40 );

    ——

    I have added some text for testing into the sidebar widgets. For instance “this is the main test” in the Main Sidebar Widget and as one can see in the LifterLMS Example Course, this actually shows up. So somehow there is a sidebar but not as it should? Or is it all fine and I am just too confused to understand how LiferLMS works?

    Any ideas?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nick Mariano

    (@reddotinmotion)

    Hi @ulf01,

    Since you are using a paid theme named Total from ThemeForest, we’re not able to replicate the frontend sidebar issue on our end since we don’t have a copy of that paid theme. Please note that LifterLMS does register a Course Sidebar widget area and a Lesson Sidebar widget area in /wp-admin/widgets.php. However, how (or if) that sidebar appears is ultimately determined by the current theme that you are using. For example, Kadence has a setting that allows LifterLMS courses to have sidebars or not. If you switch to themes like the Twenty Twenty-Four Theme, the default layout has no sidebar. On the other hand, in the Sky Pilot theme, the default course layout has a sidebar.

    If the Total theme you are using does not support sidebars, kindly follow the instructions in lifterlms.com/docs/lifterlms-sidebar-support and in lifterlms.com/docs/super-sidebars-lab to try to add sidebar support on your site. We also recommend reaching out to the support team of your current theme to confirm if they have sidebar support so you can check if using extra PHP code is really necessary.

    Plugin Support Nick Mariano

    (@reddotinmotion)

    Hi @ulf01,

    As we haven’t had any response in over a week, I am going to mark this thread as resolved. Please reopen or post a new thread if you require further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.