div, .tags a:hover, #services .feature .icon-bg { background-color: {$primary_color}; }"."\n"; $custom .= ".button.dark.solid:hover, .button, #content.single-post .hentry, .to-top:hover, #footer .share-social, input[type=\"submit\"] { border-color: {$primary_color}; }"."\n"; } //Site title $site_title = esc_html(get_theme_mod( 'site_title_color' )); if ( isset($site_title) && ( $site_title != '#ffffff' )) { $custom .= ".site-title a { color: {$site_title}; }"."\n"; } //Site description $site_desc = esc_html(get_theme_mod( 'site_desc_color' )); if ( isset($site_desc) && ( $site_desc != '#ffffff' )) { $custom .= ".site-description { color: {$site_desc}; }"."\n"; } //Body text $body_text = esc_html(get_theme_mod( 'body_text_color' )); if ( isset($body_text) && ( $body_text != '#aaa' )) { $custom .= "body { color: {$body_text}; }"."\n"; } //Footer background $footer_bg = esc_html(get_theme_mod( 'footer_color' )); if ( isset($footer_bg) && ( $footer_bg != '#222' )) { $custom .= "#footer { background-color: {$footer_bg}; }"."\n"; } //Output all the styles wp_add_inline_style( 'intro-style', $custom ); } add_action( 'wp_enqueue_scripts', 'intro_custom_styles' );