Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Nov 2011
    Posts
    138
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Question Masonry layout help needed - WordPress (cross-post)

    Hi there,
    This is my first post in the JavaScript side of these forums. I think my issue involves both PHP and javascript, thus the cross-post.

    I have a client who wants their articles laid out similarly to this page, but mainly with just the article image, date & article title. On our development side I've managed to get things set up as far as this. This is the grid layout the client wants for the articles:



    My understanding is that I need to be using an array of columns in the php, and then have all the dimensions set up in javascript somehow. I've got the first row set up. But when I try to add the longer/narrower 2nd row grid, ALL the larger square images crop and then tile, instead of just the one row.

    I am admittedly REALLY new to making custom PHP and javascript changes, so I'm sure this is a pretty easy thing for someone expert to handle. But I'm a good learner so if someone can send me in the right direction or something, I'm happy to run with it as best I can.

    Thanks in advance.

    ~Laura
    Last edited by operapixie; 09-04-2012 at 07:22 PM.

  • #2
    Senior Coder xelawho's Avatar
    Join Date
    Nov 2010
    Posts
    2,980
    Thanks
    56
    Thanked 557 Times in 554 Posts
    Quote Originally Posted by operapixie View Post
    This is the grid layout the client wants for the articles.
    that's a broken link (for me at least).

    is there some reason this is not a css question?

  • #3
    Regular Coder
    Join Date
    Nov 2011
    Posts
    138
    Thanks
    12
    Thanked 0 Times in 0 Posts
    I honestly don't know WHERE it belongs. As far as I can tell, the process involves PHP, CSS and Javascript.

    I will fix the image link right now. My apologies. I think maybe the site where it resides requires a membership to view it that way.

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Posts
    459
    Thanks
    0
    Thanked 20 Times in 20 Posts
    magazine layout
    You can also try searching for random image magazine layouts on google.
    NO Limits!! DHCreationStation.com
    ------------------------------------------------------------
    Broken items wanted for tinkerin'! PostItNow@BrokenEquipment.com
    Global Complaint Dept.

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,696
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Cross-posting is highly frowned upon (not just in this forum). I suggest to merge this thread with the other one in the PHP section.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •