Issues with configurating Infinite Scroll
Hi!
i have trouble making infinite scroll work! I'm talking about this website:
http://www.timrodenbroeker.de/bereich/projekte/
I placed this at the bottom of the <head>-Area:
- <script src="http://www.timrodenbroeker.de/wp-content/themes/trvk/js/jquery-1.11.0.min.js"></script> <script src="http://www.timrodenbroeker.de/wp-content/themes/trvk/js/jquery.infinitescroll.min.js"></script>
And this into the beginnig of the <body> (then i changed the selectors.):
- <script type="text/javascript">
- // infinitescroll() is called on the element that surrounds
- // the items you will be loading more of
- $('#wrapper').infinitescroll({
-
- navSelector : "div.bottomnav",
- // selector for the paged navigation (it will be hidden)
- nextSelector : "div.bottomnav a:first",
- // selector for the NEXT link (to page 2)
- itemSelector : "div.article"
- // selector for all items you'll retrieve
- });
- </script>
Maybe it doesn't work, because i filled in the wrong selectors?
The website is running under wordpress. I know there's a plugin, but i wan't to learn how it works the classic way. :-)
Thanx in advance!