add_setting(
'captivating_text_color',
array(
'default' => captivating_customizer_get_default_text_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_links_color',
array(
'default' => captivating_customizer_get_default_links_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_linkshover_color',
array(
'default' => captivating_customizer_get_default_linkshover_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_button_color',
array(
'default' => captivating_customizer_get_default_button_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_buttonborder_color',
array(
'default' => captivating_customizer_get_default_buttonborder_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_buttontext_color',
array(
'default' => captivating_customizer_get_default_buttontext_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_buttonhover_color',
array(
'default' => captivating_customizer_get_default_buttonhover_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_buttonhoverborder_color',
array(
'default' => captivating_customizer_get_default_buttonhoverborder_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_buttonhovertext_color',
array(
'default' => captivating_customizer_get_default_buttonhovertext_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_announcement_color',
array(
'default' => captivating_customizer_get_default_announcement_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_announcementtext_color',
array(
'default' => captivating_customizer_get_default_announcementtext_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_featured_color',
array(
'default' => captivating_customizer_get_default_featured_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_newsletter_color',
array(
'default' => captivating_customizer_get_default_newsletter_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_newslettertext_color',
array(
'default' => captivating_customizer_get_default_newslettertext_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_cta_color',
array(
'default' => captivating_customizer_get_default_cta_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_ctatext_color',
array(
'default' => captivating_customizer_get_default_ctatext_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_footer_color',
array(
'default' => captivating_customizer_get_default_footer_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_footertext_color',
array(
'default' => captivating_customizer_get_default_footertext_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_readmorelink_color',
array(
'default' => captivating_customizer_get_default_readmorelink_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_widgettitle1_color',
array(
'default' => captivating_customizer_get_default_widgettitle1_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_widgettitle2_color',
array(
'default' => captivating_customizer_get_default_widgettitle2_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_widgettitle3_color',
array(
'default' => captivating_customizer_get_default_widgettitle3_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_sidebarwidgettitle1_color',
array(
'default' => captivating_customizer_get_default_sidebarwidgettitle1_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_sidebarwidgettitle2_color',
array(
'default' => captivating_customizer_get_default_sidebarwidgettitle2_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_sidebarwidgettitle3_color',
array(
'default' => captivating_customizer_get_default_sidebarwidgettitle3_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_morecategory1_color',
array(
'default' => captivating_customizer_get_default_morecategory1_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_morecategory2_color',
array(
'default' => captivating_customizer_get_default_morecategory2_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
$wp_customize->add_setting(
'captivating_morecategory3_color',
array(
'default' => captivating_customizer_get_default_morecategory3_color(),
'sanitize_callback' => 'sanitize_hex_color',
)
);
//* Add Labels to add headings.
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_text_color',
array(
'description' => __( 'Change the default color for all the body text across the site.', 'captivating' ),
'label' => __( 'Main Text Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_text_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_links_color',
array(
'description' => __( 'Change the default color for all your links across the site', 'captivating' ),
'label' => __( 'Link Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_links_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_linkshover_color',
array(
'description' => __( 'Change the default color for all your links when hovered on across the site', 'captivating' ),
'label' => __( 'Link Color ON HOVER', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_linkshover_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_button_color',
array(
'description' => __( 'Change the default background color for all the buttons.', 'captivating' ),
'label' => __( 'Button Background Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_button_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_buttonborder_color',
array(
'description' => __( 'Change the default color for the border on all the buttons.', 'captivating' ),
'label' => __( 'Button Border Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_buttonborder_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_buttontext_color',
array(
'description' => __( 'Change the default color for the text on the buttons.', 'captivating' ),
'label' => __( 'Button Text Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_buttontext_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_buttonhover_color',
array(
'description' => __( 'Change the default background color for all the buttons when hovered.', 'captivating' ),
'label' => __( 'Button Background Color ON HOVER', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_buttonhover_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_buttonhoverborder_color',
array(
'description' => __( 'Change the default color for the border on all the buttons when hovered.', 'captivating' ),
'label' => __( 'Button Hover Border Color ON HOVER', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_buttonhoverborder_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_buttonhovertext_color',
array(
'description' => __( 'Change the default color for the text on the buttons when hovered.', 'captivating' ),
'label' => __( 'Button Hover Text Color ON HOVER', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_buttonhovertext_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_announcement_color',
array(
'description' => __( 'Change the default background color on the top announcement bar.', 'captivating' ),
'label' => __( 'Announcement Background Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_announcement_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_announcementtext_color',
array(
'description' => __( 'Change the default text color on the top announcement bar.', 'captivating' ),
'label' => __( 'Announcement Text Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_announcementtext_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_featured_color',
array(
'description' => __( 'Change the default background color on the featured content section at the top of the home page and top of the custom blog template.', 'captivating' ),
'label' => __( 'Featured Content Background', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_featured_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_newsletter_color',
array(
'description' => __( 'Change the default background color of the subscription box on the sidebar, the convert kit newsletter, as well as the background on the categories in the category index.', 'captivating' ),
'label' => __( 'Newsletter Background', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_newsletter_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_newslettertext_color',
array(
'description' => __( 'Change the default text color of the subscription box on the sidebar, the convert kit newsletter, as well as the background on the categories in the category index.', 'captivating' ),
'label' => __( 'Newsletter Text', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_newslettertext_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_cta_color',
array(
'description' => __( 'Change the default background color of the Site Wide CTA.', 'captivating' ),
'label' => __( 'CTA Background', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_cta_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_ctatext_color',
array(
'description' => __( 'Change the default text color of the Site Wide CTA.', 'captivating' ),
'label' => __( 'CTA Text', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_ctatext_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_footer_color',
array(
'description' => __( 'Change the default background color of the footer credits. This also controls the color of your drop down menus.', 'captivating' ),
'label' => __( 'Footer Background Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_footer_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_footertext_color',
array(
'description' => __( 'Change the default text color of the footer credits.', 'captivating' ),
'label' => __( 'Footer Text Color', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_footertext_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_readmorelink_color',
array(
'description' => __( 'Change the default color of the read more links.', 'captivating' ),
'label' => __( 'Read More Link', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_readmorelink_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_widgettitle1_color',
array(
'description' => __( 'Change the default border color for the widget titles.', 'captivating' ),
'label' => __( 'Widget Title Border 1', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_widgettitle1_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_widgettitle2_color',
array(
'description' => __( 'Change the default border color for the widget titles.', 'captivating' ),
'label' => __( 'Widget Title Border 2', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_widgettitle2_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_widgettitle3_color',
array(
'description' => __( 'Change the default border color for the widget titles.', 'captivating' ),
'label' => __( 'Widget Title Border 3', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_widgettitle3_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_sidebarwidgettitle1_color',
array(
'description' => __( 'Change the default border color for the widget titles on the primary sidebar.', 'captivating' ),
'label' => __( 'Sidebar Widget Title Border 1', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_sidebarwidgettitle1_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_sidebarwidgettitle2_color',
array(
'description' => __( 'Change the default border color for the widget titles on the primary sidebar.', 'captivating' ),
'label' => __( 'Sidebar Widget Title Border 2', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_sidebarwidgettitle2_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_sidebarwidgettitle3_color',
array(
'description' => __( 'Change the default border color for the widget titles on the primary sidebar.', 'captivating' ),
'label' => __( 'Sidebar Widget Title Border 3', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_sidebarwidgettitle3_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_morecategory1_color',
array(
'description' => __( 'Change the default link color of the more from category link.', 'captivating' ),
'label' => __( 'More from Category Link 1', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_morecategory1_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_morecategory2_color',
array(
'description' => __( 'Change the default link color of the more from category link.', 'captivating' ),
'label' => __( 'More from Category Link 2', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_morecategory2_color',
)
)
);
$wp_customize->add_control(
new WP_Customize_Color_Control(
$wp_customize,
'captivating_morecategory3_color',
array(
'description' => __( 'Change the default link color of the more from category link.', 'captivating' ),
'label' => __( 'More from Category Link 3', 'captivating' ),
'section' => 'colors',
'settings' => 'captivating_morecategory3_color',
)
)
);
//* Add front page setting to the Customizer
$wp_customize->add_section( 'captivating_blog_section', array(
'title' => __( 'Front Page Content Settings', 'captivating' ),
'description' => __( 'Choose if you would like to display the content section below widget sections on the front page.', 'captivating' ),
'priority' => 75.01,
));
//* Add front page setting to the Customizer
$wp_customize->add_setting( 'captivating_blog_setting', array(
'default' => 'true',
'capability' => 'edit_theme_options',
'type' => 'option',
));
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize, 'captivating_blog_control', array(
'label' => __( 'Front Page Content Section Display', 'captivating' ),
'description' => __( 'Show or Hide the content section. The section will display on the front page by default.', 'captivating' ),
'section' => 'captivating_blog_section',
'settings' => 'captivating_blog_setting',
'type' => 'select',
'choices' => array(
'false' => __( 'Hide content section', 'captivating' ),
'true' => __( 'Show content section', 'captivating' ),
),
))
);
$wp_customize->add_setting( 'captivating_blog_text', array(
'default' => __( 'Latest from the Blog', 'captivating' ),
'capability' => 'edit_theme_options',
'sanitize_callback' => 'wp_kses_post',
'type' => 'option',
));
$wp_customize->add_control( new WP_Customize_Control(
$wp_customize, 'captivating_blog_text_control', array(
'label' => __( 'Blog Section Heading Text', 'captivating' ),
'description' => __( 'Choose the heading text you would like to display above posts on the front page.
This text will show when displaying posts and using widgets on the front page.', 'captivating' ),
'section' => 'captivating_blog_section',
'settings' => 'captivating_blog_text',
'type' => 'text',
))
);
}