diff --git a/classes/class-ctlearndash.php b/classes/class-ctlearndash.php index cc6584b..d54c64f 100644 --- a/classes/class-ctlearndash.php +++ b/classes/class-ctlearndash.php @@ -229,15 +229,19 @@ public function enqueue_scripts() { // Add VC style if it is activated. $wpb_custom_css = get_post_meta( $template, '_wpb_shortcodes_custom_css', true ); if ( ! empty( $wpb_custom_css ) ) { - wp_add_inline_style( 'astra-theme-css', $wpb_custom_css ); + wp_add_inline_style( 'learndash_style', $wpb_custom_css ); } // Custom CSS to hide elements from LearnDash when a custom template is used. $css = ' - .custom-template-lifterlms .btn-join { - display: none; + .custom-template-lifterlms .custom-template-learndash-content .btn-join, + .custom-template-lifterlms .custom-template-learndash-content #learndash_course_status, + .custom-template-lifterlms .custom-template-learndash-content #learndash_course_materials { + display: initial; } + .custom-template-lifterlms .btn-join, + .custom-template-lifterlms #learndash_course_status, .custom-template-lifterlms #learndash_course_materials { display: none; } @@ -280,10 +284,15 @@ public function override_template_include() { */ public function render( $content ) { + $content = '