Buy GoPro HERO Camera at GoPro.com GoPro HD 2 was released - check out the new features.

How To Create Links That Open in a New Window in Blogger


In the previous post I mentioned how to manually set each link to open in a new window by adding a target attribute (target="_blank") within the anchor tags.

I currently read a HTML tutorial book and I've found out there's a simpler and better way to make all links from your blog or website load in new pages or tabs. To make this change to your Blogger / Blogspot blog, follow the instructions below:
  • Log into your Blogger account
  • Choose your blog
  • Go to Layout/Edit HTML
  • Find the opening head tag <head>
  • Paste this code just after it: <base target='_blank'/>
  • Click Save Template
That's it. You can now start posting links and all of them will open the target URLs in new windows. This means your readers will stay longer on your blog being able to read more of your awesome posts.

The base tag - <base/> - can be inserted anywhere between the head tags - <head> ... </head> - but it's better to place it below the start tag so you can find it faster later.

Happy Blogging!


Share this article with your friends!


Other Articles You Might Like - Listed by Topics:



11 Comments:

  1. Wow. It worked for me. Before reading this,i was confused to hell. But now it has been solved out by this trick
    ReplyDelete
  2. I'm glad you find this article useful. Thanks for stopping by. Cheers!
    ReplyDelete
  3. THANK YOU SO MUCH!!! LOL. I was looking everywhere for the instructions on this and your explanation was so simple. Took 2 seconds!
    ReplyDelete
  4. thanks..its really helpful
    ReplyDelete
  5. wow..this really help me alot.Your posting help very much..thx man..
    ReplyDelete
  6. Really you have done a good job. The written style is very prompt and the highly practical manners. Rachael completed the online course in Feature Writing for Magazines and Newspapers in June this year. During the course, she wrote an article and sent it to Charter magazine. It's been published in the November issue. I am looking forward to reading more from you. Keep up the good work. Thanks.
    ReplyDelete
  7. Thanks Henry!

    Who is Rachael and what does she have to do with links opening in new tabs? :-)
    ReplyDelete

Please use your personal name and NOT your business name to comment. Any business name or any other links in the comment text will be considered spam. Enjoy the blog, the free vectors and thanks for joining the conversation!