Created
November 8, 2017 23:43
-
-
Save braddalton/927664290e86f93db28a832933bd9d74 to your computer and use it in GitHub Desktop.
Infinite Scroll Button To Load More Posts In Genesis https://wpsites.net/web-design/genesis-infinite-scroll-with-button-to-load-more-posts/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_enqueue_scripts', 'genesis_infinite_scroll_load_more_posts_button' ); | |
function genesis_infinite_scroll_load_more_posts_button() { | |
wp_enqueue_script( 'infinite-scroll', get_stylesheet_directory_uri() . '/is.js', array( 'jquery' ), '1.0.0', true ); | |
wp_enqueue_script( 'infinite-scroll-set', get_stylesheet_directory_uri() . '/set.js' , array( 'jquery', 'infinite-scroll' ), '1.0.0', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment