• Hello Alex, you make the best wordpress themes by the way, I have been a fan for many years.

    I have chosen the grid option for my homepage, but I want it to display 3 columns instead of the usual 2 as it shows now.

    How do I increase the column? I have yet to dig deep into the theme, is this maybe an CSS option? Please guide me in the right direction.

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

    (@alxmedia)

    Hi and thanks.

    Due to a bit old CSS in the theme, it’s not ideal to switch to 3 columns for lower resolutions, but if you still want to do it, do the following:

    Add this in Customize > Additional CSS:

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

    Then you need to edit index.php, archive.php, category.php and search.php, preferably with a child theme, and change this:

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

    To:

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

    Should hopefully give you a start!

Viewing 1 replies (of 1 total)
  • The topic ‘Grid layout should have 3 columns instead of two’ is closed to new replies.