• Resolved mmroux

    (@mmroux)


    Hello, love your plug in. However,I have added just one course so far to my website and the ‘mark as complete’ button is not showing on any of the pages as well as the sidebars (lesson progress and syllabus) not showing or displaying at all either on the pages. The achievement award image is not showing neither. I am using the weaver xtreme theme. Is there any way to fix these issues? Thank you!

    https://wordpress.org/plugins/lifterlms/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    Thread Starter mmroux

    (@mmroux)

    Okay, thank you!

    @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!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘LifterLMS Mark Complete button and sidebars not working’ is closed to new replies.