• I’m putting together a child theme for the Twenty Fifteen theme and using the enqueue for the WP built-in masonry scripts like I have on an older theme of mine, using the same init js, the same css, the same html layout (50% width) as another theme where it works just fine.

    In my child theme for 2015, everything works with the exception of one thing….all blog posts are getting positioned left as 0px (every single one). I debugged, no errors; double checked the container the posts go into, not an issue.

    Is there any reason for Twenty Fifteen to cause a conflict such as this? Basically, is there something in Twenty Fifteen that would make the masonry scripting add a left:0px to each post element?

Viewing 1 replies (of 1 total)
  • Thread Starter mocha365

    (@mocha365)

    UPDATE: Today, I tried many other masonry methods, all work but again, each method still had each post position as left: 0px from the masonry init script that was used.

    I also put my code into the Twenty Sixteen theme to test it there…it worked!
    I put it into Twenty Seventeen, it worked also!

    So as it appears, there is something in the twenty fifteen theme that is affecting the layout to make each post item left:0px;

    • This reply was modified 8 years, 10 months ago by mocha365.
Viewing 1 replies (of 1 total)

The topic ‘Adding Masonry for Blog – Always Left 0’ is closed to new replies.