Skip to content

Commit 2cd601b

Browse files
committed
Fix: Yoast seo breaks the dashboard home page
1 parent 5852165 commit 2cd601b

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

classes/Assets.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -830,11 +830,6 @@ public function enqueue_scripts() {
830830
wp_enqueue_style( 'tutor-kids', $kids_css_url, array( 'tutor-core' ), $version );
831831
}
832832

833-
if ( $is_dashboard ) {
834-
wp_enqueue_style( 'tutor-dashboard', $dashboard_css_url, array(), $version );
835-
wp_enqueue_script( 'tutor-dashboard', $dashboard_js_url, array( 'tutor-core', 'wp-i18n' ), $version, true );
836-
}
837-
838833
// Core.
839834
wp_enqueue_style( 'tutor-core', $core_css_url, array(), $version );
840835
wp_enqueue_script( 'tutor-core', $core_js_url, array( 'wp-i18n' ), TUTOR_VERSION, true );

templates/dashboard.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,5 +124,9 @@
124124
</div>
125125
<?php do_action( 'tutor_dashboard/after/wrap' ); ?>
126126
</body>
127-
<?php wp_footer(); ?>
127+
<?php if ( ! $is_by_short_code && ! defined( 'OTLMS_VERSION' ) ) : ?>
128+
</body>
129+
<?php wp_footer(); ?>
130+
</html>
131+
<?php endif; ?>
128132
</html>

0 commit comments

Comments
 (0)