Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8930345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:52:27+00:00 2026-06-15T08:52:27+00:00

This is my first post and I am fairly new to WordPress so please

  • 0

This is my first post and I am fairly new to WordPress so please go easy on me for asking stupid questions.

Currently I am attempting to install Masonry http://masonry.desandro.com/ into a child theme based off of the standard Twenty Eleven theme that comes with WordPress.

I have followed directions from about 20 different tutorials and have no clue why I can not get it to work. I am specifically trying to get it to work for dev project http://www.ct-social.com/ctsdev/aff/our-trips/

Any advice that could lead me in the correct direction. Maybe someone can actually tell me what I am doing wrong.

Update 11/30/12
I have changed the scrip to the following:

<script type="text/javascript">
jQuery(document).ready(function($){
  var $container = $('.container');
  $container.imagesLoaded(function(){
    $container.masonry({
      itemSelector : '.featured',
      singleMode:true
    });
  });
});
</script>

and the html is structured as such:

<div class="container">
  <div class="featured">
      Stuff inside
  </div>
</div>

Still no luck. Any Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:52:28+00:00Added an answer on June 15, 2026 at 8:52 am

    You are using this

    var $container = $('#container');
      $container.imagesLoaded(function(){
        $container.masonry({
          itemSelector : '.item',
          columnWidth : 240
        });
      });
    

    which fails because your “tiles” all use container as an id and $('#container') expects to only find one element. You should not have multiple elements with the same id on the same page.

    If you look at the Masonry tutorial example markup

    <div id="container">
      <div class="item">...</div>
      <div class="item">...</div>
      <div class="item">...</div>
      ...
    </div>
    

    there is one div with the id container and each item has the same class.

    You need to put all of your items inside a div with the id “container” and add the “featured” class to all the elements you’d like Masonry to tile.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first post here, and I'm fairly new to Qt. I am
This is my first post in this forum, so please, be patient with me.
This is my first post on stackoverflow, so please excuse me if my question
This is my first post here so go easy. I am trying to build
This is my first post on Stack, so please bear with me if I
I'm very new to C# (this is my first C# project). I'm fairly confident
I'm fairly new to Python. And this is my first class: import config #
this is my first post; this site has been an invaluable resource. I'm fairly
This is my first post and I my first experience with jquery. I have
This is my first post, thx, you've been very helpful. But I'm stuck. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.