astra_heading_colors_section_dynamic_css( string $dynamic_css, string $dynamic_css_filtered = '' )
Dynamic CSS
Description
Parameters
- $dynamic_css
-
(string) (Required) Astra Dynamic CSS.
- $dynamic_css_filtered
-
(string) (Optional) Astra Dynamic CSS Filters.
Default value: ''
Return
(String) Generated dynamic CSS for Heading Colors.
Source
File: inc/addons/heading-colors/dynamic-css/dynamic.css.php
function astra_heading_colors_section_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { /** * Heading Colors - h1 - h6. */ $heading_base_color = astra_get_option( 'heading-base-color' ); /** * Normal Colors without reponsive option. * [1]. Heading Colors */ $css_output = array( /** * Content base heading color. */ 'h1, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6' => array( 'color' => esc_attr( $heading_base_color ), ), ); if ( astra_has_global_color_format_support() ) { $css_output['.entry-title a'] = array( 'color' => esc_attr( $heading_base_color ), ); } /* Parse CSS from array() */ $css_output = astra_parse_css( $css_output ); $dynamic_css .= $css_output; return $dynamic_css; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
2.1.4 | Introduced. |