[ SYSTEM ]: Linux wordpress 6.1.0-41-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
themes
/
astra
/
inc
/
addons
/
heading-colors
/
dynamic-css
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 dynamic.css.php
1,335 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: dynamic.css.php
<?php /** * Heading Colors - Dynamic CSS * * @package Astra * @since 2.1.4 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Heading Colors */ add_filter( 'astra_dynamic_theme_css', 'astra_heading_colors_section_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return String Generated dynamic CSS for Heading Colors. * * @since 2.1.4 */ 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' ); if ( empty( $heading_base_color ) ) { return $dynamic_css; } /** * Normal Colors without reponsive option. * [1]. Heading Colors */ $css_output = array( /** * Content base heading color. */ 'h1, h2, h3, h4, h5, h6, .entry-content :where(h1, h2, h3, h4, h5, 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; }