li>a { color:" . esc_attr($menu_link_color) . "}"; // Menu hover link color $menu_hover_link_color = get_theme_mod( 'menu_hover_color', '#666' ); $custom .= ".navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>li>a:focus, .navbar-default .navbar-nav>li>a:hover { color:" . esc_attr($menu_hover_link_color) . "}"; // heading $heading_font_weight = get_theme_mod( 'heading_font_weight', '700' ); $heading_color = get_theme_mod( 'heading_color', '#000' ); $custom .= "h1,h2,h3,h4,h5,h6 { color:" . esc_attr($heading_color) . ";font-family: ". $heading_fonts_family .";font-weight: " . $heading_font_weight . ";}"; // heading $menu_bg_color = get_theme_mod( 'menu_bg_color', '#000' ); $custom .= ".primary-menu { background-color:" . esc_attr($menu_bg_color) . ";}"; // Default Button Color's $default_text_color = get_theme_mod( 'default_text_color', '#fff' ); $default_bg_color = get_theme_mod( 'default_bg_color', '#000' ); $default_border_color = get_theme_mod( 'default_border_color', '#000' ); $custom .= ".comment-form .form-submit input,.search-submit,.btn-default, .btn-default.disabled{ background-color:" . esc_attr($default_bg_color) . "; color: " . esc_attr($default_text_color) . ";border-color: " . esc_attr($default_border_color) . "; } "; // Default Button Hover Color's $default_hover_text_color = get_theme_mod( 'default_hover_text_color', '#fff' ); $default_hover_bg_color = get_theme_mod( 'default_hover_bg_color', '#333' ); $default_hover_border_color = get_theme_mod( 'default_hover_border_color', '#333' ); $custom .= ".comment-form .form-submit input:hover,.search-submit:hover,.btn-default.active, .btn-default.focus, .btn-default:active, .btn-default:focus, .btn-default:hover, .open>.dropdown-toggle.btn-default{ background-color:" . esc_attr($default_hover_bg_color) . "; color: " . esc_attr($default_hover_text_color) . ";border-color: " . esc_attr($default_hover_border_color) . "; } "; // Heading Elements $heading_size_h1 = get_theme_mod( 'heading_size_h1', '40' ); $custom .= " h1{ font-size: " . $heading_size_h1 . "px }"; $heading_size_h2 = get_theme_mod( 'heading_size_h2', '36' ); $custom .= " h2{ font-size: " . $heading_size_h2 . "px }"; $heading_size_h3 = get_theme_mod( 'heading_size_h3', '30' ); $custom .= " h3{ font-size: " . $heading_size_h3 . "px }"; $heading_size_h4 = get_theme_mod( 'heading_size_h4', '24' ); $custom .= " h4{ font-size: " . $heading_size_h4 . "px }"; $heading_size_h5 = get_theme_mod( 'heading_size_h5', '18' ); $custom .= " h5{ font-size: " . $heading_size_h5 . "px }"; $heading_size_h6 = get_theme_mod( 'heading_size_h6', '15' ); $custom .= " h6{ font-size: " . $heading_size_h6 . "px }"; //Output inline styles wp_add_inline_style( 'ablog-style', $custom ); } add_action( 'wp_enqueue_scripts', 'ablog_typography' );