Separated Comment from Post

时间:2015-04-16 作者:Bamz Springfield

我是一个对wordpress知之甚少的设计师(新手)><;)

我使用的Worpress启动程序主题来自:html5blank。com公司

我想分开COMMENT 节自POST 节,这仍然是一个单一的。php页面。我有看link 但对我来说不起作用(看起来像是因为2011年的主题hirarcy和我的主题(html5blank)不同),

以下是web的设计:https://plus.google.com/110670554739072533922/posts/B2erhKgkZVc

相关帖子部分Comment section ---> (1) i want to separated this

1 个回复
最合适的回答,由SO网友:Bamz Springfield 整理而成

ahaaa:Dit成功了,我使用CSS。这里是屏幕截图Separated comment from post page

我在上使用的代码single.php :

<!-- post section -->
<section class="post-section all-round grid">
    <div class="content_wrapper">
        <!-- YOUR CONTENT -->
    </div>
</section>
<!-- end .post-section -->

<!-- comment section -->
<section class="comment-section all-round grid">
    <?php if ( comments_open() || get_comments_number() ) : ?>
    <?php comments_template(); ?>
    <?php endif; ?>
</section>
<!-- end .comment-section -->

<?php endwhile; ?>
<?php else: ?>

CSS code :

/* SECTION TO SEPARATE POST AND COMMENT */

.post-section, .comment-section  {
    background-color: white;
    width: 900px;
    margin:20px auto;
}
架构:

循环(&L);发布(&L);注释部分>

  • 结束循环

  • 结束

    相关推荐

    从GET_COMMENTS的参数中排除特定的用户ID

    我基本上是在多个页面上使用“最新评论”系统,其中一个特定用户被列为评论的第一个回复(用特殊CSS突出显示),然后在这个“特殊评论”下面列出2-3个普通用户。我希望将特定用户从普通用户列表中排除,但我无法确定。如果HTML有点混乱,很抱歉,但真正重要的是第二个$args数组。<?php $args = array( \'user_id\' => $curauth->ID, \'number\' => 5,