23,
'title' => esc_html__( 'Color Settings', 'bizpoint' ),
) );
/**
* SECTION FOR BODY & HEADER COLOR
*/
Bizpoint_Kirki::add_section( 'custom_body_colors', array(
'title' => __( 'Body & Header Colors', 'bizpoint' ),
'panel' => 'custom_colors',
'capability' => 'edit_theme_options',
'theme_supports' => '',
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'body_bg_color',
'label' => __( 'Body Background', 'bizpoint' ),
'section' => 'custom_body_colors',
'type' => 'color',
'priority' => 1,
'default' => '#424242',
'choices' => array(
'alpha' => true,
),
'description' => __( 'This works only for boxed layout. If you want to change background color in wide layout, use content background setting below.', 'bizpoint' ),
'output' => array(
array(
'element' => 'body',
'property' => 'background-color',
),
),
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'content_bg_color',
'label' => __( 'Content Background', 'bizpoint' ),
'section' => 'custom_body_colors',
'type' => 'color',
'priority' => 2,
'default' => '#e9e9e9',
'choices' => array(
'alpha' => true,
),
'output' => array(
array(
'element' => '.bp-content-bg',
'property' => 'background-color',
),
),
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'header_bg_color',
'label' => __( 'Header Background', 'bizpoint' ),
'section' => 'custom_body_colors',
'type' => 'color',
'priority' => 3,
'default' => '#ffffff',
'choices' => array(
'alpha' => false,
),
'output' => array(
array(
'element' => '.site-header',
'property' => 'background-color',
),
),
) );
/**
* SECTION FOR NAV & LINK COLORS
*/
Bizpoint_Kirki::add_section( 'custom_nav_colors', array(
'title' => __( 'Navigation & Link Colors', 'bizpoint' ),
'panel' => 'custom_colors',
'capability' => 'edit_theme_options',
'theme_supports' => '',
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'custom',
'settings' => 'hr_line_1',
'section' => 'custom_nav_colors',
'default' => '
'. __( 'Main Navbar Link Colors', 'bizpoint') .'
',
'priority' => 1,
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'nav_bg_color',
'label' => __( 'Navbar Background', 'bizpoint' ),
'section' => 'custom_nav_colors',
'type' => 'color',
'priority' => 2,
'default' => '#3454D1',
'choices' => array(
'alpha' => false,
),
'output' => array(
array(
'element' => '.nav-bg',
'property' => 'background-color',
),
array(
'element' => '.main-navigation ul ul',
'property' => 'background-color',
),
),
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'nav_link_color',
'label' => __( 'Navbar Link Color', 'bizpoint' ),
'section' => 'custom_nav_colors',
'type' => 'color',
'priority' => 3,
'default' => '#ffffff',
'choices' => array(
'alpha' => true,
),
'output' => array(
array(
'element' => array( '.main-navigation a', '.main-navigation a:hover' ),
'property' => 'color',
),
),
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'active_nav_bg_color',
'label' => __( 'Active Nav Link Background', 'bizpoint' ),
'section' => 'custom_nav_colors',
'type' => 'color',
'priority' => 4,
'default' => 'rgba(255, 255, 255, 0.15)',
'choices' => array(
'alpha' => true,
),
'output' => array(
array(
'element' => array( '.current-menu-item a', '.main-navigation a:hover' ),
'property' => 'background-color',
),
),
'description' => __( 'This change will not be shown in live preview as there is no active link. You can save and check on live website.', 'bizpoint' ),
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'type' => 'custom',
'settings' => 'hr_line_2',
'section' => 'custom_nav_colors',
'default' => '
'. __( 'Other Link Colors', 'bizpoint') .'
',
'priority' => 5,
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'link_color',
'label' => __( 'Link Color', 'bizpoint' ),
'section' => 'custom_nav_colors',
'type' => 'color',
'priority' => 6,
'default' => '#3454D1',
'choices' => array(
'alpha' => false,
),
'output' => array(
array(
'element' => array( 'a' ),
'property' => 'color',
),
array(
'element' => array( '.btn-primary' ),
'property' => 'background-color',
),
array(
'element' => array( '.btn-primary' ),
'property' => 'border-color',
),
),
) );
Bizpoint_Kirki::add_field( 'bizpoint_theme', array(
'settings' => 'link_hover_color',
'label' => __( 'Link Hover Color', 'bizpoint' ),
'section' => 'custom_nav_colors',
'type' => 'color',
'priority' => 7,
'default' => '#16309B',
'choices' => array(
'alpha' => false,
),
'output' => array(
array(
'element' => array( 'a:hover', 'a:focus', 'a:active' ),
'property' => 'color',
),
array(
'element' => array( '.btn-primary:hover' ),
'property' => 'background-color',
),
array(
'element' => array( '.btn-primary:hover' ),
'property' => 'border-color',
),
),
) );