$arilewp_mod_v ) { set_theme_mod( $arilewp_mod_k, $arilewp_mod_v ); } } } add_action( 'after_switch_theme', 'ariletech_parent_theme_options' ); /** * Remove Parent Theme Setting * */ function ariletech_remove_parent_setting( $wp_customize ) { $wp_customize->remove_setting('arilewp_testomonial_background_image'); $wp_customize->remove_setting('arilewp_testimonial_overlay_disable'); } add_action( 'customize_register', 'ariletech_remove_parent_setting',99 ); /** * Fresh site activate * */ $fresh_site_activate = get_option( 'fresh_ariletech_site_activate' ); if ( (bool) $fresh_site_activate === false ) { set_theme_mod( 'arilewp_page_header_background_color', 'rgba(0,0,0,0.6)' ); set_theme_mod( 'arilewp_testimonial_overlay_disable', false ); set_theme_mod( 'arilewp_theme_color', 'theme-blue-strong' ); set_theme_mod( 'arilewp_testimonial_layout', 'arilewp_testimonial_layout2' ); set_theme_mod( 'arilewp_slider_caption_layout', 'arilewp_slider_captoin_layout2' ); set_theme_mod( 'arilewp_theme_info_layout', 'arilewp_theme_info_layout2' ); set_theme_mod( 'arilewp_main_header_style', 'transparent' ); set_theme_mod( 'arilewp_footer_container_size', 'container' ); set_theme_mod( 'arilewp_blog_front_container_size', 'container' ); set_theme_mod( 'arilewp_blog_column_layout', '3' ); update_option( 'fresh_ariletech_site_activate', true ); } /** * Page header * */ function ariletech_custom_header_setup() { add_theme_support( 'custom-header', apply_filters( 'ariletech_custom_header_args', array( 'default-image' => get_stylesheet_directory_uri().'/assets/img/ariletech-page-header.jpg', 'default-text-color' => 'fff', 'width' => 1920, 'height' => 500, 'flex-height' => true, 'flex-width' => true, 'wp-head-callback' => 'ariletech_header_style', ) ) ); } add_action( 'after_setup_theme', 'ariletech_custom_header_setup' ); /** * Custom background * */ function ariletech_custom_background_setup() { add_theme_support( 'custom-background', apply_filters( 'ariletech_custom_background_args', array( 'default-color' => 'fff', 'default-image' => '', ) ) ); } add_action( 'after_setup_theme', 'ariletech_custom_background_setup' ); if ( ! function_exists( 'ariletech_header_style' ) ) : /** * Styles the header image and text displayed on the blog. * * @see ariletech_custom_header_setup(). */ function ariletech_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. ?> '; if (is_home() || is_front_page()) : echo '