This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Astra_Dynamic_CSS::conditional_headings_css_selectors( String $selectors_with_achors, String $selectors_without_achors )
Conditionally iclude CSS Selectors with anchors in the typography settings.
Description
Historically Astra adds Colors/Typography CSS for headings and anchors for headings but this causes irregularities with the expected output. For eg Link color does not work for the links inside headings.
If filter astra_include_achors_in_headings_typography
is set to true or Astra Option include-headings-in-typography
is set to true, This will return selectors with anchors. Else This will return selectors without anchors.
Parameters
- $selectors_with_achors
-
(String) (Required) CSS Selectors with anchors.
- $selectors_without_achors
-
(String) (Required) CSS Selectors withour annchors.
Return
(String) CSS Selectors based on the condition of filters.
Source
File: inc/class-astra-dynamic-css.php
private static function conditional_headings_css_selectors( $selectors_with_achors, $selectors_without_achors ) { if ( true === self::anchors_in_css_selectors_heading() ) { return $selectors_with_achors; } else { return $selectors_without_achors; } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.4.9 | Introduced. |