$nav_class ){ if( $nav_class === 'navbar-color-on-scroll' || $nav_class === 'navbar-transparent' ){ unset( $classes[$key] ); } } } return implode(' ', $classes); } add_filter('hestia_header_classes','tiny_hestia_filter_nav_classes'); /** * Get inline style from customizer. * This function is necessary because there isn't a script with a handle 'hestia_script' ( we removed it ) so the * wp_add_inline_style won't add inline style for top bar. * * @since 1.0.0 */ function tiny_hestia_top_bar_inline_style() { if( !function_exists( 'hestia_get_top_bar_style' ) ){ return; } $custom_css = hestia_get_top_bar_style(); wp_add_inline_style( 'tiny-hestia-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'tiny_hestia_top_bar_inline_style', 99 );