0
A
回答
0
您可以使用add_filter()
用于此目的。
一个简单的例子是像
add_filter('the_title', 'lose_four_chars');
function lose_four_chars($title) {
if (is_single()) {
return substr($title, 4);
} else {
return $title;
}
}
其中lose_four_chars
功能可与您的手动功能所取代..
请看看here
看着你的代码。这是css的东西,或者直接添加到php文件中。我们无法帮助更多,因为我们不知道对方是怎么回事...... – drip 2014-10-05 11:34:09
我在php中添加了修剪,它可以。修剪(wp_title( '')); – praashaad 2014-10-05 11:39:52