Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法强制将“#”号自动添加到所有 wordpress 帖子标题的开头?
我知道您可以强制将其大写或小写等。但是您可以在它们的开头添加一个特殊字符或单词吗?
谢谢!
我认为阿曼达在谈论所有标题,而不是在线浏览器的标题..
您可以将此函数用作插件,或在您的 functions.php 页面中使用:
add_filter('the_title', function($title) { return '#'. $title;})
在您的模板文件夹中搜索header.php文件,然后在此文件中搜索<title>标签。
header.php
<title>
现在在之后添加一个#权利,<title>它将出现在所有页面上。
#