Feb 23, 2007

Wordpress Hacking for Better Blog Titles

Here is a quick tip for any Wordpress users frustrated at the crappy default page titles you get with most templates. I got asked yesterday how I changed mine and if I used a plugin. No, it’s way easier than that.

Go into your Wordpress admin and navigate to Presentation then Theme Editor. You need to edit your Header template. Find the Title tags. Replace with the following:


title...?php // if is the homepage, display // just the blog name // otherwise use the post title if(is_home()) { echo bloginfo('name'); } else { wp_title(''); echo ' : '; echo bloginfo('name'); } ?..title



What this code will do is display your blog name (set in options) for the homepage, otherwise your post title (or archives, whatever) followed by your blog name.

If you want to display something other than your blog name replace “bloginfo('name')” with the text of your choice surrounded by quotes, eg.

echo "Chris is fantastic";

That’s all there is to it really. Let me know if I haven’t made this clear.


**(apply on tag "title" with <...> and closed by )

*This article taken from http://www.chrisg.com

Related Posts




1 comments:

manali said...

Download mp3 songs, Video songs, Wallpapers or Full Movie

(Bollywood, Hollywood, Telugu and Tamil Movies)

Download mp3 songs


Download or Watch Online Video


Download Full Movie


Download Wallpapers of Actress


Download Movie Wallpapers


Download mp3 songs, Video songs, Wallpapers or Full Movie


Latest Tpoics of this site :


Download Bhoothnath Video Songs


Download Meet Bill Hollywood Movie(2008)


Download Baby Mama movie(2008)


Download Love Songs Bollywood movie (2008)


Download Pandi Songs (2008)


Watch or Download Akku movie (2008)


Download What Happens In Vegas movie(2008)


Download War, Inc. movie(2008)


Download my mom's new boyfriend movie (2008)


Download chennai superkings songs


Download Aayutham Seivom songs (2008)


Download Speed Racer Movie (2008)


Download Khushboo songs (2008)


Download Bhootnath movie (2008)


Download sonal chauhan Actress Wallpapers


Download Katherine Heigl Wallpapers


Download ileana Wallpapers


Download Anamika Video songs (2008)


Download Anamika movie(2008)


Watch Sirf Video songs (2008)


Watch Jalsa Video Songs (2008)


Download Jalsa wallpapers (2008)


Watch Kantri Video Songs (2008)


Download Rang Rasiya Wallpapers (2008)


Download Ankit, Pallavi & Friends Songs


Download Anamika Songs (2008)


Download Ghatothkach songs (2008)


Download Jalsa (2008) telugu movie


Download Kantri Wallpapers (2008)


Download Raat Gayi Baat Gayi wallpapers (2008)


Download Don Muthuswami video songs (2008)


Download Don Muthuswami Songs (2008)


Download Dhoom Dadakka Video Songs (2008)


Download Hastey Hastey (2008) Wallpapers


Download Dhoom Dadakka (2008) songs


Download The Awakening (2008) Songs


Download Hastey Hastey Video Songs


Download Anushka Shetty Wallpapers


Download Kalidasu Telugu Movie (2008)


Download Too Hot Too Cool (2008) Songs, IPL POP


Download Mr White Mr Black movie (2008)


Download Hastey Hastey Songs (2008)


Download Shamur Shardana Songs - Pop Album


Download Sirf (2008) Movie


Kuruvi Video Songs Download


Download Tashan movie (2008)


Download Katrina kaif Wallpapers


Download Aashayein Wallpapers


Download The Number 23 (2007) movie


Download Vaana Telugu songs

Post a Comment

Google