urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } function twentyseventeen_child_scripts_styles() { wp_enqueue_style( 'bloggingluv-fonts', twentyseventeen_child_fonts_url(), array(), null ); } add_action( 'wp_enqueue_scripts', 'twentyseventeen_child_scripts_styles' ); // Use featured imagge as full-screen background image on landing page function my_body_class( $classes ) { if ( is_page_template( 'page-landing.php' ) ) { $classes[] = 'page-template-page-landing'; } return $classes; } add_filter('body_class', 'my_body_class'); function my_styles_method() { wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/style.css' ); $bgimage = get_the_post_thumbnail_url(); $custom_css = " .page-template-page-landing { background: #FFF url($bgimage) no-repeat 50% 20% fixed !important; } "; wp_add_inline_style( 'custom-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'my_styles_method' ); // Register featured content widget function bloggingluv_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar Featured', 'bloggingluv' ), 'id' => 'sidebar-4', 'description' => __( 'Add widgets here to appear below header on single post.', 'bloggingluv' ), 'before_widget' => '', 'before_title' => '