Home › Forums › Support › Add nice loading effects to Generatepress with Pace.js › Reply To: Add nice loading effects to Generatepress with Pace.js
May 24, 2016 at 9:54 am
#196416
mirthar
Of course!
Thanks for your interest in helping me out ๐
Here it is!
<?php
/**
* Generate child theme functions and definitions
*
* @package Generate
*/
function pacejs_styles_and_scripts() {
wp_enqueue_style( 'pace', get_stylesheet_directory_uri() . '/css/pace-theme-corner-indicator.css');
wp_enqueue_script( 'theme-scripts', get_stylesheet_directory_uri() . '/js/pace.min.js');
}
add_action( 'wp_enqueue_scripts', 'pacejs_styles_and_scripts' );
Here you have link to see it in action:
https://drive.google.com/open?id=0B90-Gwn3YdBFc3JteVh2ekZSYTQ