$consultstreet_mod_v ) { set_theme_mod( $consultstreet_mod_k, $consultstreet_mod_v ); } } } add_action( 'after_switch_theme', 'brightpress_parent_theme_options' ); /** * Fresh site activate * */ $fresh_site_activate = get_option( 'fresh_brightpress_site_activate' ); if ( (bool) $fresh_site_activate === false ) { set_theme_mod( 'consultstreet_main_slider_overlay_disable', false ); set_theme_mod( 'consultstreet_main_slider_content_color', '#000' ); set_theme_mod( 'consultstreet_theme_color', 'theme-blue-strong' ); set_theme_mod( 'consultstreet_service_content_alignment', 'left' ); set_theme_mod( 'consultstreet_testimonial_layout', 'consultstreet_testimonial_layout2' ); set_theme_mod( 'consultstreet_blog_layout', 'consultstreet_blog_layout2' ); set_theme_mod( 'consultstreet_theme_header', 'standard' ); set_theme_mod( 'consultstreet_footer_style', 'light' ); update_option( 'fresh_brightpress_site_activate', true ); } /** * Page header * */ function brightpress_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'brightpress_custom_header_args', array( 'default-image' => get_stylesheet_directory_uri().'/assets/img/page-header.jpg', 'default-text-color' => '#000', 'width' => 1920, 'height' => 500, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'brightpress_header_style', ) ) ); } add_action( 'after_setup_theme', 'brightpress_custom_header_setup' ); /** * Custom background * */ function brightpress_custom_background_setup() { add_theme_support( 'custom-background', apply_filters( 'brightpress_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'brightpress_custom_background_setup' ); if ( ! function_exists( 'brightpress_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see interiorpress_custom_header_setup(). */ function brightpress_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. ?>