*:not(.alignfull), .page .entry-header, .page .entry-footer, .page .entry > *:not(.alignfull) { max-width: '.esc_attr( get_theme_mod('content-width') ).'px; } '."\n"; } // header logo max-height if ( get_theme_mod('logo-max-height','60') != '60' ) { $styles .= '.site-title a img { max-height: '.esc_attr( get_theme_mod('logo-max-height') ).'px; }'."\n"; } // header text color if ( get_theme_mod( 'header_textcolor' ) != '' ) { $styles .= '.site-title a, .site-description { color: #'.esc_attr( get_theme_mod( 'header_textcolor' ) ).'; }'."\n"; } wp_add_inline_style( 'boxcard-style', $styles ); } } } add_action( 'wp_enqueue_scripts', 'boxcard_dynamic_css' );