This commit is contained in:
Alexander Agnarson 2019-03-19 17:49:21 +01:00
parent 4e80cae56e
commit 3225714dfa
5 changed files with 35 additions and 7 deletions

View file

@ -147,6 +147,19 @@ a,
'."\n";
}
// header color
if ( get_theme_mod('color-header','#000000') != '#000000' ) {
$styles .= '
#header-inner-inner-inner { background-color: '.esc_attr( get_theme_mod('color-header') ).'; }
@media only screen and (min-width: 720px) {
#nav-header .nav > li.current_page_item > a:before,
#nav-header .nav > li.current-menu-item > a:before,
#nav-header .nav > li.current-menu-ancestor > a:before,
#nav-header .nav > li.current-post-parent > a:before { border-top: 8px solid '.esc_attr( get_theme_mod('color-header') ).'!important; }
}
.site-title { border-bottom-color: rgba(255,255,255,0.1)!important; }
'."\n";
}
// gradient left
if ( get_theme_mod('gradient-left','#da1b60') != '#da1b60' ) {
$styles .= '

View file

@ -685,6 +685,14 @@ Kirki::add_field( 'curver_theme', array(
'section' => 'styling',
'default' => '#ed542f',
) );
// Styling: Header Color
Kirki::add_field( 'curver_theme', array(
'type' => 'color',
'settings' => 'color-header',
'label' => esc_html__( 'Header Color', 'curver' ),
'section' => 'styling',
'default' => '#000000',
) );
// Styling: Gradient Left
Kirki::add_field( 'curver_theme', array(
'type' => 'color',