Plugins Not Loading On Second Page
-
Hello. I have implemented a script on my website:
https://www.awesomewasteofmoney.com/That loads the next page underneath without having to reload the page. If you scroll to the bottom and click “LOAD MORE POSTS” this is the script I am reffering to. I will also paste the code below:
<script type="text/javascript"> // Ajax-fetching "Load more posts" $('.load_more_cont a').live('click', function(e) { e.preventDefault(); //$(this).addClass('loading').text('Loading...'); $('.load_more_text a').html('Loading...'); $.ajax({ type: "GET", url: $(this).attr('href') + '#content', dataType: "html", success: function(out) { result = $(out).find('#content_inside .featured_box'); nextlink = $(out).find('.load_more_cont a').attr('href'); //alert(nextlink); //$('#boxes').append(result).masonry('appended', result); $('#content_inside').append(result); //$('.fetch a').removeClass('loading').text('Load more posts'); $('.load_more_text a').html('Load More'); if (nextlink != undefined) { $('.load_more_cont a').attr('href', nextlink); } else { $('.load_more_cont').remove(); $('#content_inside').append('<div class="clear"></div>'); <?php get_header(); ?> // $('.load_more_cont').css('visibilty','hidden'); } /* if (nextlink != undefined) { $.get(nextlink, function(data) { if($(data + ":contains('featured_box')") != '') { //alert('not found'); $('.load_more_cont').remove(); $('#content').append('<div class="clear"></div>'); } }); }*/ } }); }); </script>
My Problem is, once the second page of posts has loaded, my plugins dont seem to work on that page. For example I have a plugin that makes all External links open in a new tab. It works on the first page fine, but as soon as i load the next it is no longer working. Any ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Plugins Not Loading On Second Page’ is closed to new replies.