astra_header_breakpoint_style( string $dynamic_css, string $dynamic_css_filtered = '' )
Function to Add Header Breakpoint Style
Description
Parameters
- $dynamic_css
-
(string) (Required) Astra Dynamic CSS.
- $dynamic_css_filtered
-
(string) (Optional) Astra Dynamic CSS Filters.
Default value: ''
Source
File: inc/extras.php
function astra_header_breakpoint_style( $dynamic_css, $dynamic_css_filtered = '' ) { // Header Break Point. $header_break_point = astra_header_break_point(); $astra_header_width = astra_get_option( 'header-main-layout-width' ); /* Width for Header */ if ( 'content' != $astra_header_width ) { $genral_global_responsive = array( '#masthead .ast-container, .ast-header-breadcrumb .ast-container' => array( 'max-width' => '100%', 'padding-left' => '35px', 'padding-right' => '35px', ), ); $padding_below_breakpoint = array( '#masthead .ast-container, .ast-header-breadcrumb .ast-container' => array( 'padding-left' => '20px', 'padding-right' => '20px', ), ); /* Parse CSS from array()*/ $dynamic_css .= astra_parse_css( $genral_global_responsive ); $dynamic_css .= astra_parse_css( $padding_below_breakpoint, '', $header_break_point ); // trim white space for faster page loading. $dynamic_css .= Astra_Enqueue_Scripts::trim_css( $dynamic_css ); } return $dynamic_css; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.5.2 | Remove ob_start, ob_get_clean and .main-header-bar-wrap::before{content} for our .ast-header-break-point class |
1.0.0 | Introduced. |