Making WordPress.org


Ignore:
Timestamp:
02/21/2022 03:03:28 AM (4 years ago)
Author:
dd32
Message:

Learn: Sync with git WordPress/learn@e815dbbaaeacd70443d8a42c93cbc5ff99a8b612

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/sensei.php

    r11517 r11584  
    147147    <?php
    148148}
     149
     150/**
     151 * Remove header spacing in Learning Mode UI
     152 */
     153function wporg_fix_learning_mode_header_space() {
     154    wp_register_style( 'learning-mode-header-fix', false, array(), '1.0' );
     155    wp_enqueue_style( 'learning-mode-header-fix' );
     156
     157    $custom_styles = '
     158        html {
     159            --wp-global-header-height: 0 !important;
     160        }
     161    ';
     162
     163    wp_add_inline_style( 'learning-mode-header-fix', $custom_styles );
     164}
     165add_action( 'sensei_course_learning_mode_load_theme', __NAMESPACE__ . '\wporg_fix_learning_mode_header_space' );
Note: See TracChangeset for help on using the changeset viewer.