20190514更新:我为了挂谷歌广告,重新显示了作者。
原文:
twentysixteen主题非常不错,只是让作者时间日期占据左侧,实在是很让人不解。
占据左侧空间,压缩了文章内容的显示宽度。
放在底部多好。实现方法如下:
1、打开\wp-content\themes\twentysixteen\template-parts目录下的两个文件:
- content.php
- content-single.php
注释掉twentysixteen_entry_meta();这个函数调用。
修改后效果如下:

2、修改\wp-content\themes\twentysixteen\style.css文件,
3465行左右 :
/*默认:*/ .site-main > article {margin-bottom: 7.0em;} /*修改为:*/ .site-main > article {margin-bottom: 3.5em;}
3572行左右 :
/*默认:*/ body:not(.search-results) article:not(.type-page) .entry-content {float: right;width:71.42857144%;} /*修改为:*/ body:not(.search-results) article:not(.type-page) .entry-content {float: right;width: 100%;}
修改值如:margin-bottom: 3.5em;及width: 100%;,可依据自己实际需求修改。修改后效果如下:
