Remove the “»” (») from your Wordpress title
September 29th, 2008Wordpress puts a “»” (») in front of all blog archive entries. This had always bothered me. To remove this character, you have to find the function call to “wp_title()” in your theme. It should usually be in a file called header.php.
In fact when you call this function, you can send it a string, which will be prepended to the title. Unfortunately it is possible to define default parameter values in PHP and a lot of theme developers jsut don’t put any parameter in the wp_title() call. So you don’t know that it’s possible to give another value by the paramter. Just another reason why PHP just plainly sucks at being a serious computer language…
I replace the call to wp_title() with the following code:
<?php trim(wp_title("")); ?>
This removes the » and trims any whitespaces from the title.
BTW: It’s also very bad pratice to have the wp_content() function actually output the title and not having it return a string containing the title. Don’t even get me started about PHP developers…

October 26th, 2008 at 04:08
Thank you very much for posting this information. This is the only site I’ve come across that actually told how to remove these characters from the title.
Your code was all I needed to get my titles showing up like I wanted.
Thanks again.
November 17th, 2008 at 19:03
Thank you!!
January 11th, 2009 at 12:31
Thanks! What an annoying feature this is from WP. And such a simple elegant solution
August 24th, 2009 at 04:06
thanks buddy! was looking all over the styles.css to remove this, and yours was a quick a simple solution. thankyou!
September 15th, 2009 at 11:04
A CSS SOLUTION
Add this to your css :
.entry ul li:before,#sidebar ul ul li:before {
content:”?? “;
}
September 18th, 2009 at 14:24
Good resource :>.
October 17th, 2009 at 01:23
Wow, this helps so much. What a simple, but usefull fix.
Thanks,
Chris
December 29th, 2009 at 16:59
Thanks for this quick and easy solution. You are awesome. -Adam
January 4th, 2010 at 02:27
[...] to this guy here for the info. « Solar panels on government buildings.. A first [...]
April 22nd, 2010 at 18:21
Worked a treat
Thanks