Solstice Theme Sidebar Compatibility
As of March 2017, the recommend method for sidebar compatibility is to use LifterLMS Labs: Super Sidebars, a free add-on that allows you to add sidebar compatibility to just about any theme in a matter of seconds without having to write any code. See the full tutorial here.
You can add the following snippet to your Solstice Theme functions.php file or to a custom plugin to ensure your course and lesson sidebars function when using this theme.
/** * LifterLMS Solstice Theme Compatibility. * * https://lifterlms.com/docs/solstice-theme-sidebar-compatibility/ * * You can add this recipe to your site by creating a custom plugin * or using the Code Snippets plugin available for free in the WordPress repository. * Read this companion documentation for step-by-step directions on either method. * https://lifterlms.com/docs/adding-custom-code/ */ /** * Display LifterLMS Course and Lesson sidebars * on courses and lessons in place of the sidebar returned by * this function * @param string $id default sidebar id (an empty string) * @return string */ function my_llms_sidebar_function( $id ) { $my_sidebar_id = 'sidebar'; // replace this with your theme's sidebar ID return $my_sidebar_id; } add_filter( 'llms_get_theme_default_sidebar', 'my_llms_sidebar_function' ); /** * Declare explicit theme support for LifterLMS course and lesson sidebars * @return void */ function my_llms_theme_support(){ add_theme_support( 'lifterlms-sidebars' ); } add_action( 'after_setup_theme', 'my_llms_theme_support' );