WordPress.org

Ready to get started?Download WordPress

Forums

Hueman
[resolved] The post no columns? (2 posts)

  1. noaneo
    Member
    Posted 1 month ago #

    Hi,
    how to not be in home, category, archive, the posts display in columns ?
    please!!
    thank you

  2. noaneo
    Member
    Posted 1 month ago #

    Hi,

    in Custom CSS, put
    .post-list .post, .post-list .page { width: 100%; }

    in index.php
    replaced

    <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 % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
    			</div><!--/.post-list-->

    by

    <div class="post-list group">
    				<?php while ( have_posts() ): the_post(); ?>
    				<?php get_template_part('content'); ?>
    				<?php endwhile; ?>
    			</div><!--/.post-list-->

    So the posts are on a single column

Reply

You must log in to post.

About this Theme

About this Topic

Tags