我正在处理WordPress主题,我对页面\\帖子布局有一些问题。
例如,如果您选择此处:http://lnx.asper-eritrea.com/lassociazione/
这是一个静态页面,显示一些文本(这是可以的),但为什么在文本下可以显示评论,在它下面可以显示日历、类别、存档和元数据?
我该怎么做才能不让这些东西显示在我的页面中?我必须修改页面模板的代码吗?
这是我的密码page.php 文件:
<?php
/**
* The Template for displaying a single page
*/
get_header();
?>
<!-- Contenuti (griglia) -->
<div class="container">
<!-- Lead presentazione -->
<section id="presentazione">
<div class="row">
<div class="col-sm-12">
<h1 class="text-center"><small>Associazione per la Tutela dei Diritti Umani del Popolo Eritreo</small></h1>
<p class="lead text-center">
Association in Defense of the Human Rights of the Eritrean People
</p>
</div><!-- /.col-sm-12 -->
</div><!-- /.row -->
</section><!-- /section presentazione -->
<div id="main-content" class="main-content">
<?php
if (is_front_page() && twentyfourteen_has_featured_posts()) {
// Include the featured content template.
get_template_part(\'featured-content\');
}
?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while (have_posts()) : the_post();
// Include the page content template.
get_template_part(\'content\', \'page\');
// If comments are open or we have at least one comment, load up the comment template.
if (comments_open() || get_comments_number()) {
comments_template();
}
endwhile;
?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(\'content\'); ?>
</div><!-- #main-content -->
<?php get_footer(); ?>