Problem with jQuery and Ajax Load More
-
Hello,
I apologize if this is kind of a newbie question, or if this is already resolved.
I have a problem trying to get the thumbnails in a square div inside the “Ajax Load More” default repeater, here’s the code I have inside of it:
<li class="column " > <div class="view view-tenth child"> <a href="<?php the_permalink(); ?>"> <?php the_post_thumbnail('full'); ?> <div class="mask"> <h3><?php the_title(); ?></h3> <p><?php the_time('F j, Y' ); ?><br> <span class="comments-n"><?php comments_number('0', '1','%' ); ?></span> <span class="likes-n">#likes</span> </p> </div> </a> </div> </li>
The “child” class work as a container that gives me an equal height and width, and I can’t get it to work inside the plugin. Here’s the script:
//Same height width var cw = $('.child').width(); $('.child').css({ 'height': cw + 'px' }); });
Thanks in advance for your help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Problem with jQuery and Ajax Load More’ is closed to new replies.