'', 'default-text-color' => 'ffffff', 'width' => 2000, 'height' => 200, 'flex-height' => true, 'wp-head-callback' => 'hantus_header_style', ) ) ); add_editor_style( array( 'assets/css/editor-style.css', thai_spa_google_font() ) ); } add_action( 'after_setup_theme', 'thai_spa_setup' ); /** * Register Google fonts for thai-spa. */ function thai_spa_google_font() { $get_fonts_url = ''; $font_families = array(); $font_families = array('Dancing Script:400,700', 'Rubik:300,400,500,700,900'); $query_args = array( 'family' => 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; } function thai_spa_scripts_styles() { wp_enqueue_style( 'thai-spa-fonts', thai_spa_google_font(), array(), null ); } add_action( 'wp_enqueue_scripts', 'thai_spa_scripts_styles' ); /** * Called all the Customize file. */ require( get_stylesheet_directory() . '/inc/customize/thai-spa-premium.php'); /** * Import Options From Parent Theme * */ function thai_spa_parent_theme_options() { $hantus_mods = get_option( 'theme_mods_hantus' ); if ( ! empty( $hantus_mods ) ) { foreach ( $hantus_mods as $hantus_mod_k => $hantus_mod_v ) { set_theme_mod( $hantus_mod_k, $hantus_mod_v ); } } } add_action( 'after_switch_theme', 'thai_spa_parent_theme_options' );