Hey mmroux,
to get sidebars working with that theme you can use code like this:
function displaying_sidebar_in_post_types_xtreme( $sidebars_widgets ) {
if (is_singular( 'course' ) && array_key_exists( 'llms_course_widgets_side', $sidebars_widgets )) {
$sidebars_widgets['primary-widget-area'] = $sidebars_widgets['llms_course_widgets_side'];
} elseif (is_singular( 'lesson' ) && array_key_exists( 'llms_lesson_widgets_side', $sidebars_widgets )) {
$sidebars_widgets['primary-widget-area'] = $sidebars_widgets['llms_lesson_widgets_side'];
}
return $sidebars_widgets;
}
add_filter( 'sidebars_widgets', 'displaying_sidebar_in_post_types_xtreme' );
This code would go in functions.php of your theme.
And for ‘mark as complete’ button, are you sure that you enrolled in course on which you are testing it? If you aren’t enrolled button wont show up. I tested it with blank version of your theme and it is showing up for me.
Thanks
Thread Starter
mmroux
(@mmroux)
Does it matter where in the functions php I put the above code? Also – yes, the mark complete button is showing now. Thank you!
It shouldn’t matter, probably best to put it near the on of the file, just before “// THE END OF functions.php” line.
@mmroux,
I’m going to mark this thread as resolved since we haven’t had any activity in over a week.
If you still require assistance please reopen or post a new thread and take care!