Sydney 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.
Use the snippet below to add sidebar support to the WordPress Sydney Theme.
This code can be added to your themes functions.php file or can be added using a custom plugin.
// Don't copy this line! /** * llms-sydney-theme-sidebars.php * * @since 2016-11-17 */ /** * 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-1'; 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' );