home page post-list 3 columns
-
I’m trying to get 3columns in the home page, and I found this solution from dodoland 7 months ago, but i’m not sure I understand how to implement the PHP in a child theme.
I’ve got the CSS change working thanks to some help from Bojan, but I’m not sure how to put the index.php change in. Do I have to paste the whole function containing the line from index.php into functions.php in the child theme, or do I just put the relevant line in?
The site is freyacat.co.uk/myctest<Begin quote>
– in the CSS change the % in post-list class; now is 50%, for 3 columns will be 33%, for 4 25%, etc. –> .post-list .page { width: 33%; float: left; }
<got this bit working>– in index.php (and obviously in archive and search) change the % in the line <?php if($i % 2 == 0) { echo ‘</div><div class=”post-row”>’; } $i++; endwhile; echo ‘</div>’; ?> –> 3 columns will be ($i % 3 == 0), 4 columns ($i % 4 == 0), etc.
<end Quote>
Thanks for any help!
- The topic ‘home page post-list 3 columns’ is closed to new replies.