* * @link https://developer.wordpress.org/themes/functionality/custom-headers/ * * @package Becommerce Store */ use BeCommerceStore\ThemeDefault as BE; /** * Set up the WordPress core custom header feature. * * @uses newsmatic_header_style() */ function becommerce_store_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'becommerce_store_custom_header_args', array( 'default-image' => '', 'default-text-color' => 'FFFFFFF', 'width' => 1000, 'height' => 250, 'flex-height' => true, 'wp-head-callback' => 'becommerce_store_style_color_init', ) ) ); } add_action( 'after_setup_theme', 'becommerce_store_custom_header_setup' ); if ( ! function_exists( 'becommerce_store_style_color_init' ) ) : /** * Styles the text displayed on the theme. * */ function becommerce_store_style_color_init() { $menu_category_big_text_button_color = BE\becommerce_store_get_mod( 'menu_category_big_text_button_color' ); $menu_category_big_button_color = BE\becommerce_store_get_mod( 'menu_category_big_button_color' ); $cta_banner_bestseller_textcolor = BE\becommerce_store_get_mod( 'cta_banner_text_color_bestseller' ); $cta_banner_button_color_bestseller = BE\becommerce_store_get_mod( 'cta_banner_button_color_bestseller' ); $cta_banner_button_text_color_bestseller = BE\becommerce_store_get_mod( 'cta_banner_button_text_color_bestseller' ); // If we get this far, we have custom styles. Let's do this. ?>