这里讲一下使用 nicetheme 旗下的 wordpress 主题时,优先需要操作及注意的一些设置。
1、使用 nicetheme 主题安装前,请先安装「积木」插件,下载地址:https://www.nicetheme.cn/jimu
2、安装好,请根据这个设置教程,做一些设置:https://www.suxing.me/blog/1960.html
3、设置媒体缩略图大小:「设置」- 「媒体」中,缩略图设置为300*0(或者宽度大于列表缩略图,可自行斟酌设置),其他设置为0。

如果你的缩略图太小了,会导致列表缩略图显示不清楚,这个时候,你需要重新生成一次缩略图,使用插件:https://wordpress.org/plugins/regenerate-thumbnails 。如下图,取消勾选「不再重新生成已存在的缩略图(更快)」,点击「为所有xxx附件重新生成缩略图」,等待重新生成。

4、如果修改首页最新文章以及文章分类中,一页分页显示文章的数量呢?如下图,位于「设置」- 「阅读」,设置「博客页面至多显示」,见图12。

5、网站优化积木中「基础设置」- 「评论默认头像」中上传一个正方形的图片,用于评论中没有邮箱或者没有 Gravatar 头像的用户作为头像使用。

弃用 Gravatar 头像。注册用户,可在个人资料中设置「nicetheme 用户头像」,自定义在站点中的头像。

6、设置默认头像:「设置」- 「讨论」中,选择「默认头像」中的「积木默认头像」。

7、在个人资料中,上传头像,修改自己的头像。

8、如发现评论头像无法显示,请在「优化设置」-「国内优化」- 「Gravatar 镜像加速 」选中其中一个镜像,国内用户推荐使用「LOLI.NET」或者 「cravatar」。

9、网站优化积木中「优化设置」,如下图。开启「优化古腾堡编辑器一些功能样式」,可解决文章内容中,某一些格式丢失、无法居中等问题。 开启「屏蔽 WordPress 5.8 小工具区块管理界面」,可解决小工具无法显示,无法保存的问题。设置完后,删除所有小工具,重新添加

小工具设置:后台-外观-小工具,网址:网址/wp-admin/widgets.php
,可自行添加或者移除侧边栏的小工具。

10、如何关闭 WordPress 顶部工具条?如下图

设置方式:「网站优化积木」-「易用性设置」 - 开启「前台不显示 WordPress 顶部工具条」,保存设置。前端就不显示 wordpress 顶部工具条。如下图

11、设置网站固定链接。教程:WordPress 常用固定链接(伪静态)格式

12、文章内图片,如何达到点击放大效果?开启「图片暗箱」功能(如下图)。

选中文章中的图片,选择「插入链接」按钮,选择「媒体文件」,保存文章,即可。

13、WordPress 常用固定链接(伪静态)格式 https://www.nicetheme.cn/wordpress-chang-yong-gu-ding-lian-jie-wei-jing-tai-ge-shi.html
14、WordPress 如何设置网站图标? 教程:https://www.nicetheme.cn/wordpress-she-zhi-wang-zhan-tu-biao.html

15、备案图标如何添加?
- 把备案图标上传至网站媒体库,获取图片地址,补充到下面代码中。备案号按实际修改。
- 把下面代码复制到指定的输入框,如下图。
<img src="https://备案图标图片链接" height="20" width="20"> 粤公网安备123456789号
