安装好wordpress后,会发现文章标题和内容都会显示在首页,这不方便查找和阅读。最好的显示方式是只显示标题不显示内容。步骤如下——

在/wp_conten/themes/twentyseventeen中找到index,php,用专门的编程软件打开(两个)将get_template_part( ‘template-parts/post/content’, get_post_format );

改为get_template_part( ‘template-parts/post/content’, ‘excerpt’ );

保存后刷新页面,查看效果。

同理,分类目录也一样,找到archive.php.用同样的手法修改。