'; # Colors $site_primary_color = get_theme_mod( 'site_primary_color', '#f47e00' ); $blog_post_category_color = get_theme_mod( 'blog_post_category_color', '#f47e00' ); $notification_bar_button_background_color = get_theme_mod( 'notification_bar_button_background_color', '#f47e00' ); $notification_bar_button_text_color = get_theme_mod( 'notification_bar_button_text_color', '#ffffff' ); $css .= ' /* Primary Background */ .section-title:before, .button-primary, .woocommerce span.onsale, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: '. esc_attr( $site_primary_color ) .'; } /* Primary Border */ .post .entry-content .entry-header .cat-links a, .attachment .entry-content .entry-header .cat-links a, .banner-content .entry-content .entry-header .cat-links a { border-color: '. esc_attr( $site_primary_color ) .'; } /* Primary Color */ blockquote:before, .post .entry-content .entry-header .cat-links a, .attachment .entry-content .entry-header .cat-links a, .banner-content .entry-content .entry-header .cat-links a, .post .entry-meta a:before, .attachment .entry-meta a:before { color: '. esc_attr( $site_primary_color ) .'; } .banner-content .entry-meta a:before { color: #ebebeb; } '; $css .= ' .post .entry-content .entry-header .cat-links a { color: '. esc_attr( $blog_post_category_color ) .'; } .banner-content .entry-content .entry-header .cat-links a { color: #ebebeb; } '; $css .= ' .post .entry-content .entry-header .cat-links a, .attachment .entry-content .entry-header .cat-links a { border-color: '. esc_attr( $blog_post_category_color ) .'; } .banner-content .entry-content .entry-header .cat-links a { border-color: #ebebeb; } '; $css .= ' .notification-bar .button-primary { background-color: '. esc_attr( $notification_bar_button_background_color ) .'; color: '. esc_attr( $notification_bar_button_text_color ) .'; } .notification-bar .button-primary:hover, .notification-bar .button-primary:focus, .notification-bar .button-primary:active { color: #ffffff; } '; /* Site Tagline */ if( get_theme_mod( 'disable_site_tagline_border', true ) ){ $css .= ' .site-header .site-branding .site-description:before, .site-header .site-branding .site-description:after { display: none; } .site-header .site-branding .site-description, .site-header .site-branding .site-description { padding-left: 0; padding-right: 0; } '; } #Header Image Height $header_image_height = get_theme_mod( 'header_image_height', 120 ); $css .= ' @media only screen and (min-width: 992px) { .site-header:not(.sticky-header) .header-image-wrap { height: '. esc_attr( $header_image_height ) .'px; width: 100%; position: relative; } } '; $highlight_posts_height = get_theme_mod( 'highlight_posts_height', 160 ); $css .= ' @media only screen and (min-width: 992px) { .highlight-posts-content-wrap .highlight-posts-image { height: '. esc_attr( $highlight_posts_height ) .'px; overflow: hidden; } } '; // end style block $css .= ''; // return generated & compressed CSS echo str_replace(array("\r\n", "\r", "\n", "\t", ' ', ' ', ' '), '', $css); } add_action( 'wp_head', 'blog_gutener_default_styles', 99 );