|
|
View previous topic
::
View next topic
|
Author |
Message |
ramon fincken Site's programmer
 Get a free globally recognized avatar It's free!
Joined: 03 Aug 2007 Posts: 412 Location: A'dam/Diemen, The Netherlands
|
Posted: Sat Aug 15, 2009 12:47 pm Post subject: [wordpress][solution] Remove trailing whitespace in title |
|
|
Having annoying whitespace like:
Code: | <title> Freelancers vinden eigen werkplek met Freelancewerkplekken.nl - Freelancewerkplekken.nl</title> |
Instead of :
Code: | <title>Freelancers vinden eigen werkplek met Freelancewerkplekken.nl - Freelancewerkplekken.nl</title> |
Go to your theme header file, find
and replace with:
Code: | echo trim(wp_title('',false)) |
The 2nd argument should be false, you can leave the rest as is.
It is possible that you'll have to do multiple find/replaces for this to work on every type of page!
See the result right here:
http://www.freelancewerkplekken.nl/free...lekken-nl/ |
|
Back to top |
|
 |
Google adsense Advertisement
|
Posted: Sat Aug 15, 2009 12:47 pm Post subject: [wordpress][solution] Remove trailing whitespace in title |
|
|
Advertisement
|
|
Back to top |
|
 |
GravityForms Advertisement
|
Posted: Sat Aug 15, 2009 12:47 pm Post subject: [wordpress][solution] Remove trailing whitespace in title |
|
|
Advertisement
 |
|
Back to top |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|