• Resolved robkinnear

    (@robkinnear)


    Amazing theme! Very clean and versatile. I just have one question: is it possible to change the number of post columns in the grid layout? 3 columns would be ideal for us. Thanks!

Viewing 1 replies (of 1 total)
  • Theme Author Alexander Agnarson

    (@alxmedia)

    Thanks!

    So, with a child theme, edit index.php.

    Locate line 16:

    
    <?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
    

    Change that to:

    
    <?php if($i % 3 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
    

    And then add this as additional CSS:

    
    .post-grid .post,
    .post-grid .page { width: 33.33%; }
    

    Should give you a start, you may need to do further css changes to make it look good on all screen sizes.

Viewing 1 replies (of 1 total)
  • The topic ‘Number of post columns increased in the grid layout?’ is closed to new replies.