home page post-list 3 columns
-
Greetings… this question seems to have been answered and has worked for others but I can not get it to work myself.
In my child-theme I have edited added the following CSS:
post-list .page { width: 33%; float: left; }
Also in my child-theme I have edited index.php
<div class="post-list group"> <?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?> <?php get_template_part('content'); ?> <?php if($i % 3 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?> </div><!--/.post-list-->
What it’s doing is dropping the 3rd post in a row down to a row by itself.
The site in question is https://airmaxxx.com
Any help with this would be greatly appreciated!
Thanks in advance!
Ken
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘home page post-list 3 columns’ is closed to new replies.