themes-wordpress/course/assets/js/header.js
Donna Peplinskie f31c58bdaf
Add Course theme ()
* Add Course theme

This theme is meant to be used with Sensei LMS, but can also be used standalone.

* Remove .pot file

* Remove obsolete CSS

* Remove color on search button

* Remove custom Sensei footer.

* Fix path of the Inter font

On the default and `blue` style.

* Fix line height

* Make image captions smaller than post content

---------

Co-authored-by: Mikey Arce <mikeyarce@gmail.com>
Co-authored-by: Jake Oehler Morrison <s+github@jom.im>
2023-04-03 10:20:15 -04:00

5 lines
No EOL
262 B
JavaScript

const isFullWidthLearningModeTemplate = document.querySelector( '.sensei-course-theme__header .sensei-course-theme-course-progress-bar' );
if ( isFullWidthLearningModeTemplate ) {
document.querySelector( 'body' ).classList.add("learning-mode-full-width");
}