dustyhawk
asked 8 years ago

Read a question and i know how to stop the infinite scroll which is to removethe following from functions.php
 
”     wp_enqueue_script( ‘wallpress_jquery_infinite’, get_template_directory_uri().’/assets/js/jquery.infinitescroll.min.js’, array( ‘jquery’ ) ); “
 
now with that done, where should i put the code if i want to use this – http://wordpress.org/plugins/wp-pagenavi/

1 Answers
DominicStaff
answered 8 years ago

Hi Dustyhawk ! 
After removing the following code in the functions.php file:

  wp_enqueue_script( 'wallpress_jquery_infinite', get_template_directory_uri().'/assets/js/jquery.infinitescroll.min.js', array( 'jquery' ) );

If you use the wp-pagenavi plugin, please open the home.php file then add the following code in the line 41:

 <?php wp_pagenavi(); ?>

See the screenshot:  Hope this helps !

dustyhawk
replied 8 years ago

perfect. works as how i wanted it to be

koh yoshida
replied 8 years ago

Yes!
Perfect!

Powered by DW Question & Answer Pro