urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $get_fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); return $get_fonts_url; } /** * Remove Customize Panel from parent theme */ function startbiz_remove_parent_setting( $wp_customize ) { $wp_customize->remove_control('breadcrumb_background_setting'); } add_action( 'customize_register', 'startbiz_remove_parent_setting',99 ); function startbiz_scripts_styles() { wp_enqueue_style( 'startbiz-fonts', startbiz_google_font(), array(), null ); } add_action( 'wp_enqueue_scripts', 'startbiz_scripts_styles' ); /** * Called all the Customize file. */ require( get_stylesheet_directory() . '/inc/customize/startbiz-premium.php'); /** * Import Options From Parent Theme * */ function startbiz_parent_theme_options() { $startkit_mods = get_option( 'theme_mods_startkit' ); if ( ! empty( $startkit_mods ) ) { foreach ( $startkit_mods as $startkit_mod_k => $startkit_mod_v ) { set_theme_mod( $startkit_mod_k, $startkit_mod_v ); } } } add_action( 'after_switch_theme', 'startbiz_parent_theme_options' );