$consultstreet_mod_v ) { set_theme_mod( $consultstreet_mod_k, $consultstreet_mod_v ); } } } add_action( 'after_switch_theme', 'fitnessbase_parent_theme_options' ); /** * Fresh site activate * */ $fresh_site_activate = get_option( 'fresh_fitnessbase_site_activate' ); if ( (bool) $fresh_site_activate === false ) { set_theme_mod( 'consultstreet_main_slider_overlay_disable', false ); set_theme_mod( 'consultstreet_menu_container_size', 'container' ); set_theme_mod( 'consultstreet_footer_container_size', 'container' ); set_theme_mod( 'consultstreet_top_header_container_size', 'container' ); set_theme_mod( 'consultstreet_typography_disabled', true ); set_theme_mod( 'consultstreet_theme_color', 'theme-pink' ); set_theme_mod( 'consultstreet_main_header_style', 'classic' ); set_theme_mod( 'consultstreet_typography_h1_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_typography_h2_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_typography_h3_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_typography_h4_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_typography_h5_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_typography_h6_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_typography_widget_title_font_family', 'Rubik' ); set_theme_mod( 'consultstreet_testimonial_layout', 'consultstreet_testimonial_layout2' ); set_theme_mod( 'consultstreet_blog_layout', 'consultstreet_blog_layout2' ); update_option( 'fresh_fitnessbase_site_activate', true ); } /** * Page header * */ function fitnessbase_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'fitnessbase_custom_header_args', array( 'default-image' => get_stylesheet_directory_uri().'/assets/img/page-header.jpg', 'default-text-color' => '#000', 'width' => 1920, 'height' => 650, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'fitnessbase_header_style', ) ) ); } add_action( 'after_setup_theme', 'fitnessbase_custom_header_setup' ); function fitnessbase_custom_customizer_options() { $consultstreet_main_slider_content_color = get_theme_mod('consultstreet_main_slider_content_color', '#fff'); ?> 'ffffff', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'fitnessbase_custom_background_setup' ); if ( ! function_exists( 'fitnessbase_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see interiorpress_custom_header_setup(). */ function fitnessbase_header_style() { $header_text_color = get_header_textcolor(); /* * If no custom options for text are set, let's bail. * get_header_textcolor() options: Any hex value, 'blank' to hide text. Default: add_theme_support( 'custom-header' ). */ if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; } // If we get this far, we have custom styles. Let's do this. ?>