默认的 title 不利于修改,自己在首页加的代码,想把默认的去掉。
默认的 title 不利于修改,自己在首页加的代码,想把默认的去掉。
|
1
寻求帮助
|
|
X-ForceJun 3, 2018
2
```add_filter( 'the_title', 'modify_title' );
function modify_title ($title) { return $title; }``` |
|
FooltJun 3, 2018
3
去掉 title 标签看这个: https://codex.wordpress.org/Function_Reference/remove_theme_support
不过修改标题正确的做法应该是通过 the_title 钩子,看这个: https://codex.wordpress.org/Plugin_API/Filter_Reference/the_title |