Sidebar issues… How to configure?
-
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]
- You must be logged in to reply to this topic.