首先,现在的wordpress插件已经相当强大了。
你的需求一般不要自己去改代码模板,
先找找有没有合适的插件。
~
比如搜索:date remove
就能找到对应的最新插件。
.entry-meta {display:none !important;}
.home .entry-meta { display: none; }
.entry-footer {display:none !important;}
.home .entry-footer { display: none; }
![](http://hyu6299340001.my3w.com/wp-content/uploads/2019/03/20190324001.png)
![](http://hyu6299340001.my3w.com/wp-content/uploads/2019/03/20190324002.png)
很强大吧。