Need help in creating splash intro page using custom page template
Let’s go from the beginning. First I’ll walk you through the enqueing of styles and scripts. In your functions.php file add: add_action( ‘wp_enqueue_scripts’, ‘splash_intro_scripts’); if ( ! function_exists( ‘splash_intro_scripts’ ) ){ function splash_intro_scripts() { if (is_page_template(‘page-intro.php’)) { wp_enqueue_style(‘google_font_1’, ‘https://fonts.googleapis.com/css?family=Arvo&subset=latin,latin-ext’); wp_enqueue_style(‘google_font_2’, ‘https://fonts.googleapis.com/css?family=Josefin+Sans&subset=latin,latin-ext’); wp_enqueue_style(‘google_font_3’, ‘https://fonts.googleapis.com/css?family=Josefin+Slab&subset=latin,latin-ext’); wp_enqueue_script( ‘bootstrap’, get_stylesheet_directory_uri().’/js/bootstrap.js’, array( ‘jquery’ ),”, false ); wp_enqueue_script( ‘blocs’, get_stylesheet_directory_uri().’/js/blocs.js’, array( … Read more