WordPress最常用的标题标签是wp_title函数,所以在此之前,一定要好好了解函数。
用法一
主页:博客名 – 博客描述
主页翻页:博客名 -第 2 页
其它页面:页面名 – 博客名
其它页面:页面名 – 博客名-第 2 页
如果你想在主页上显示:博客名称 – 博客描述-第 2 页
只需要去除if语句中的&& !is_paged()
此外,我还摘录了官方默认主题twentyeleven标题写法:
时间:2021-01-09 10:23:49
WordPress最常用的标题标签是wp_title函数,所以在此之前,一定要好好了解函数。
主页:博客名 – 博客描述
主页翻页:博客名 -第 2 页
其它页面:页面名 – 博客名
其它页面:页面名 – 博客名-第 2 页
如果你想在主页上显示:博客名称 – 博客描述-第 2 页
只需要去除if语句中的&& !is_paged()
此外,我还摘录了官方默认主题twentyeleven标题写法:
织梦DedeCMS调用[field:title/]标签时 标题出现b标签怎么去掉
2020-10-28
织梦DedeCMS增加一个fulltitle标签 让你的title=显示完整标题
2020-08-09
如何修改服务器标题 修改DEDECMS网页TITLE标签的方法
2021-07-05