urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } // Load google font locally. require_once get_theme_file_path( 'inc/wptt-webfont-loader.php' ); return esc_url_raw( wptt_get_webfont_url( $fonts_url ) ); } /** * Adds custom classes to the array of body classes. * * @param array $classes Classes for the body element. * @return array */ function businessfocus_body_classes( $classes ) { // Added color scheme to body class. $classes['color-scheme'] = 'color-scheme-corporate'; return $classes; } add_filter( 'body_class', 'businessfocus_body_classes', 100 ); /** * Change default header text color */ function businessfocus_dark_header_default_color( $args ) { $args['default-image'] = get_theme_file_uri( 'assets/images/header-image.jpg' ); return $args; } add_filter( 'photofocus_custom_header_args', 'businessfocus_dark_header_default_color' ); /** * Override parent theme to add promotion headline section. */ function photofocus_sections( $selector = 'header' ) { get_template_part( 'template-parts/header/header', 'media' ); get_template_part( 'template-parts/slider/display', 'slider' ); get_template_part( 'template-parts/services/display', 'services' ); get_template_part( 'template-parts/hero-content/content','hero' ); get_template_part( 'template-parts/featured-content/display', 'featured' ); get_template_part( 'template-parts/promotion-headline/post-type-promotion' ); get_template_part( 'template-parts/portfolio/display', 'portfolio' ); get_template_part( 'template-parts/testimonial/display', 'testimonial' ); } /** * Load Customizer Options */ require trailingslashit( get_stylesheet_directory() ) . 'inc/customizer/promotion-headline.php';