Grid format on archive pages (3 posts)

  1. salabinha
    Posted 3 years ago #

    I have a question regarding archives page. I am trying to display the content on the archive page only in grid format with 2 or 3 columns.

    I tried wrapping the 'if have post stuff’ with a div and adding a css to the style.css file.

    On the archive page I have:
    <div class="new-wrapper">
    …the post code…

    On the style.css I added:
    .new-wrapper { float: left; width: 200px; height: 200px; margin: 0px 20px 20px 0px; }

    The problem is this is creating just one columns and I would like to have 2 or 3 columns.

    Can you please advise on what to do in order to display the posts in the achive page only in grid format with 2 or 3 columns?

    Thank you so much in advance.

  2. WPyogi
    Forum Moderator
    Posted 3 years ago #

    This may be what you are trying to do?


  3. Michael
    Forum Moderator
    Posted 3 years ago #

    it might help troubleshooting if you can post a live link to your site, pointing to an archive page with the problem.

    in the meantime, try working with a browser inspection tool such as Firebug, to find out what is causing the one-column layout.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic