bwatanabe
Forum Replies Created
-
Sorry for not marking this as resolved sooner. Thanks for the help beaver6813!
@beaver6813, turns out that running the ads in ajax loaded elements is against Google’s TOS I guess… Seems a little less relevant for infinite scroll, but I probably won’t attempt it since I don’t want my account getting banned.
They do have an Ajax beta program, but as of now it’s closed. I’ll probably look into an alternative until it opens.
@ryan I’m using the following in my header:
<script language="javascript" type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.masonry.min.js"></script> <script type="text/javascript"> //$(window).load(function() { $(document).ready(function() { //set some variables var $container = $('#container'); //calls the imagesLoaded function $container.imagesLoaded( function(){ //show content and hide loading div once p-age is ready. $('#container').fadeIn("normal"); $('#loading').hide(); //calls masonry $container.masonry({ itemSelector : '.post', singleMode: false, gutterWidth: 27, columnWidth: 300, }); }); }); </script>Why do you ask?
Hi beaver6813,
Sorry to be a bother, but I’ve got another question if you don’t mind helping.
Its related to your answer here: http://ww.wp.xz.cn/support/topic/infinite-scroll-vs-fb-like-and-g?replies=6
Except I need my Google ads to repeat within the next page. An example of the ads working can be seen here: http://pewlpit.com/?themedemo=2.0-Pew
Really appreciate your help.
beaver6813 Thank you!
You’re really a Purple Cow of the Internet! (lol, I hope you’ve read Seth Godin’s “Purple Cow,” or that might sound like an insult). The support that you provide here, and that I’ve seen you giving on github is amazing!
I just can’t believe that you do it all for free. Well, if you haven’t read Purple Cow yet let me send it to you through Amazon, if you’re interested, as a small thanks for the your great plugin and support.
Not sure if this site has a PM function, but if it does just send me your email and I’ll be sure to send you a
Thanks, let me know!
I realized I forgot to include the version it is ‘version 2.0b2.110822’
and currently in the javascript field I have:
// trigger Masonry as a callback function( newElements ) { $container.masonry( 'appended', $newElems, true ); }Sorry for the multiple posts, just want to make sure and give as much information as possible.
This is the site that its being developed on
http://pewlpit.com/?themedemo=2.0-Pew
Right now I’m using a themeswitcher plugin to view the updated theme and I only have the infinite-scroll plugin turned on for admins right now.
Any help would be much appreciated, I can’t figure out which parts of the appended method listed here http://masonry.desandro.com/docs/methods.html#appended to post where.