2014-10-05 63 views
0

我想从wordpress标题中删除符号& raquo。此符号在每一页页标题前加:标题中的Wordpress符号

http://i.stack.imgur.com/7I5xf.png

+0

看着你的代码。这是css的东西,或者直接添加到php文件中。我们无法帮助更多,因为我们不知道对方是怎么回事...... – drip 2014-10-05 11:34:09

+0

我在php中添加了修剪,它可以。修剪(wp_title( '')); – praashaad 2014-10-05 11:39:52

回答

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