Swap Blogger Title Hack – Error Free!

Blogger recently changed the way the layout codes are processed which prevented Blogger users to change their layout through the Page Elements Layout tab while using the Swap Title hack. Nobody could find a solution to this till now. Blogger introduced a new layout tag “blog.pageName” recently which gave me an idea to solve the Swap Title problem. I tested my method on this blog and guess what? It works just fine!

So without wasting any more time here is the all new “Error Free” Blogger Swap Title Hack:

  1. Backup your blog’s template just to be safe.
  2. Find this code in your template:

    <title><data:blog.title/></title> or <title><data:blog.pageTitle/></title>

  3. Replace the above tag with this:

    <!– Blogger Swap Title by Archit T at http://blog.archit.in –>
    <b:if cond=’data:blog.pageType == &quot;item&quot;’>
    <title>
    <data:blog.pageName/> | <data:blog.title/>
    </title>
    <b:else/>
    <title><data:blog.pageTitle/></title>
    </b:if>
    <!– End of Blogger Swap Title by Archit T at http://blog.archit.in –>

  4. Save your template and you’re done!

This hack does not return any XML errors which the older Swap Blogger Title Hacks do and it also lets you change your template layout through the Page Elements Layout tab!

Also read...

Comments

  1. Dude I’m excited about this – thanks for the code it works AND I can arrange page elements without breaking the XML – nice work. I have been searching for this code for Months.

  2. Hi Friend,
    After going through so many posts about this issue with buggy code, at last, I got the simple and perfect solution from your post… Thanks and keep the good work..
    I modified my blog as per your instructions and is working fine.

    Thanks again. 😉

  3. hey archit i did exactly as u have said but my post title and blog title did not get swapped…pls help yaar….

  4. @boffin You have 2 Title tags in your blog template. Remove the title tag which is on the 3rd line of your template and this hack would work just fine.

    Let me know if you are not able to solve the problem.

  5. The only hack that worked for me, I’ve tried various title hacks for blogger by others but none worked..thanks!

  6. No way not to say: THANK YOU!
    I tried 2 other ways before I reach your post, but neither worked for me.
    And, in my blog the tags that I had to replace were:
    title data:blog.pageTitle/ /title – that might be because I’m using custom template.
    I think you should include this in the post, so the newbies won’t give up on the first paragraph.

  7. @smokemachine You are welcome smokemachine! Glad that this hack helped you.

    Thanks for the correction though. I had already did the modification to the post but somehow forgot to publish it. Sorry for the inconvenience caused; the post has been updated.

    Thank You!

  8. @Anonymous The hack is working perfectly fine on your blog. While on the post pages, the title shows the post header first and then the blog title.

  9. Thanks Archit – I guess it was just me being stupid. Thanks for all your help.

  10. Hello, nice work though from some reason very small number of my posts appear before the blog title, and only on google, and not yahoo. I implemented this hack two weeks ago. Advice? my blog is http://totalka.blogspot.com

    Thanks
    Ned

  11. @Ned The search engines take time to index your pages. Ping Google and Yahoo and they will slowly change their old indexes.

  12. I implemented in my site Cool it’s working.
    Well I request Archit can know how to show post description under post title in search engine’s

  13. hey archit i did exactly as u have said but my post title and blog title did not get swapped…

    I am not use two title tag

  14. @Bank: I checked you blog. It looks like you didn’t save the changes.

    Please follow the instructions again and this time be sure to save it! 🙂

    Cheers!

  15. Hi Archit, I tried the instruction that you gave here but it seems not working on my blog? Do I need to put something on the code that you’ve provided or not? When I did that and make a preview of it, the template change. I don’t know if there is something wrong. here is my blog http://onlinecabalbot.blogspot.com

  16. @nabster: Hey nabster, I checked your blog and looks like the hack is working just fine on your blog.

  17. i haVE IMPLEMENTED.. NO ERRORS, BUT THE SWAPPING NOT DONE.. just showing the title of my blog alone there.. what to do?.. can u point any possible problems frnd.. i have done the same before some time.. and worked, now its not ..

  18. @pixelshots I just checked your blog and seems the hack is working just fine.

    The main page will just show the blog's title but the single blog post pages will show the post title first and then the blog's title.

    Cheers!

  19. Hello Guru, what entice you to post an article. This article was extremely interesting, especially since I was searching for thoughts on this subject last Thursday.

    rH3uYcBX

  20. Hello! I'm having some problems with my code and getting this hack to work, so I'm begging for any help you might be able to give. I'm sure your code is right, but I did something to my code that I can't for the life of me figure out. On the main address for my blog there is now no title and on the post pages the name of my blog is the only title. I'd be grateful for any advice you can give. Thank you!

Comments are closed.