• So here’s the problem:
    I got a jQuery function like this in my footer.php which applies a hover-effect to every post.

    <script type="text/javascript" charset="utf-8">
    			(function($) {
    				$('.post_wrapper').mouseenter(function() {
    					$(this).parent().find('.contenthover').animate({
    						height:'toggle'
    					}, 400, function(){
    					});
    				});
    				$('.post_wrapper').mouseleave(function() {
    					$(this).parent().find('.contenthover').animate({
    						height:'toggle'
    					}, 400, function(){
    					});
    				});
    			})(jQuery);
    </script>

    And this works just fine for me when the page loads, but i don’t know how to get the same effect to the posts that infinite scroll loads. I’m quite new to jquery and wordpress, so i would appreciate a answer that tells me in which file i need to put which code.

    I’ve tried this:
    I put the same code to “Javascript to be called after the next posts are fetched” -field and it did the effect but it did it twice

    http://ww.wp.xz.cn/extend/plugins/infinite-scroll/

The topic ‘[Plugin: Infinite-Scroll] Infinite Scroll and JQuery -functions..’ is closed to new replies.