a,.main-navigation .current-menu-item > a,.main-navigation .current_page_ancestor > a { border-color:" . esc_attr($primary_color) . "}"."\n"; } //Menu $menu_bg = get_theme_mod( 'menu_bg', '#1C1E21' ); $custom .= ".site-header { background-color:" . esc_attr($menu_bg) . ";}"."\n"; //Menu scroll $menu_bg_scroll = get_theme_mod( 'menu_bg_scroll', '#ffffff' ); $menu_rgba = astrid_hex2rgba($menu_bg_scroll, 0.9); if ($menu_bg_scroll != "#ffffff") { $custom .= ".site-header.header-scrolled { background-color:" . esc_attr($menu_rgba) . ";}"."\n"; $custom .= "@media only screen and (max-width: 1024px) { .site-header,.site-header.has-header,.site-header.header-scrolled { background-color:" . esc_attr($menu_rgba) . ";}}"."\n"; } //Body $body_text = get_theme_mod( 'body_text_color', '#969CB3' ); $custom .= "body, .widget a { color:" . esc_attr($body_text) . "}"."\n"; //Footer $footer_bg = get_theme_mod( 'footer_bg', '#1C1E29' ); $custom .= ".site-footer, .footer-widgets { background-color:" . esc_attr($footer_bg) . "}"."\n"; //Fonts $body_fonts = get_theme_mod('body_font_family'); $headings_fonts = get_theme_mod('headings_font_family'); if ( $body_fonts !='' ) { $custom .= "body { font-family:" . wp_kses_post($body_fonts) . ";}"."\n"; } if ( $headings_fonts !='' ) { $custom .= "h1, h2, h3, h4, h5, h6 { font-family:" . wp_kses_post($headings_fonts) . ";}"."\n"; } //Site title $site_title_size = get_theme_mod( 'site_title_size', '62' ); if ( get_theme_mod( 'site_title_size' )) { $custom .= ".site-title { font-size:" . intval($site_title_size) . "px; }"."\n"; } //Site description $site_desc_size = get_theme_mod( 'site_desc_size', '18' ); if ( get_theme_mod( 'site_desc_size' )) { $custom .= ".site-description { font-size:" . intval($site_desc_size) . "px; }"."\n"; } //H1 size $h1_size = get_theme_mod( 'h1_size' ); if ( get_theme_mod( 'h1_size' )) { $custom .= "h1 { font-size:" . intval($h1_size) . "px; }"."\n"; } //H2 size $h2_size = get_theme_mod( 'h2_size' ); if ( get_theme_mod( 'h2_size' )) { $custom .= "h2 { font-size:" . intval($h2_size) . "px; }"."\n"; } //H3 size $h3_size = get_theme_mod( 'h3_size' ); if ( get_theme_mod( 'h3_size' )) { $custom .= "h3 { font-size:" . intval($h3_size) . "px; }"."\n"; } //H4 size $h4_size = get_theme_mod( 'h4_size' ); if ( get_theme_mod( 'h4_size' )) { $custom .= "h4 { font-size:" . intval($h4_size) . "px; }"."\n"; } //H5 size $h5_size = get_theme_mod( 'h5_size' ); if ( get_theme_mod( 'h5_size' )) { $custom .= "h5 { font-size:" . intval($h5_size) . "px; }"."\n"; } //H6 size $h6_size = get_theme_mod( 'h6_size' ); if ( get_theme_mod( 'h6_size' )) { $custom .= "h6 { font-size:" . intval($h6_size) . "px; }"."\n"; } //Body size $body_size = get_theme_mod( 'body_size' ); if ( get_theme_mod( 'body_size' )) { $custom .= "body { font-size:" . intval($body_size) . "px; }"."\n"; } */ //Output all the styles wp_add_inline_style( 'astrid-style', $custom ); } add_action( 'wp_enqueue_scripts', 'astrid_custom_styles' );