Southern Listeners

Loading
Thanks to Greenlava for this cool gadget. Get yours here

Sunday, November 14, 2010

Make Blogger Posts Open in New Tabs

By default, when you click on a post's link, the post page will load on the current tab/window itself. There are lots of reasons on why you might want your posts to open in new tabs. I won't be discussing what these reasons are (because currently my idle mind can't think of any!), I'm just gonna cut to the chase and show you how.

In this tutorial, I will be using Simple Template by Josh Peterson. It should work with other templates as well, but I can't guarantee on those heavily moded ones. The method remains the same though. If you can grasp the idea, you can apply this simple tweak to your template as well no matter how different it is.

Step 1:

If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Back Up (Download Full Template) - Check the box next to 'Expand Widget Templates'

If you're using the new Blogger interface: Go to Dashboard - Template - Backup/Restore - Download Full Template - Close - Edit HTML - Proceed - Check the box next to 'Expand Widget Templates'

Find for the following line:
<a expr:href='data:post.link'><data:post.title/></a>
Add the tag target='_blank' to this line. Refer to the example below on where you should add it:
<a expr:href='data:post.link' target='_blank'><data:post.title/></a>

Step 2:

Find for the following line now, and add the same tag as in Step 1:
<a expr:href='data:post.url'><data:post.title/></a>
Your line should look like this after the addition of your modification tag:
<a expr:href='data:post.url' target='_blank'><data:post.title/></a>
Just a quick image example, this is how my modified lines look like after adding the extra tag:





Save your template and you're done! Have fun!

11 comments:

  1. Thanks a lot. After visiting your blog, I've added so many features to my blog with the help of your tutorials.

    ReplyDelete
  2. @Pavithara: Glad you're enjoying your stay here. And thanks for the feedback.

    Happy blogging. Cheers and God bless.

    ReplyDelete
  3. Thanks . See my blog, it completely changed thanks to your tutorials.
    www.techytk.blogspot.in

    ReplyDelete
  4. how to use it??? pls help... How to make post under the pages/tabs????

    ReplyDelete
    Replies
    1. Hi ajay,

      See if this is what you're looking for:

      http://www.southernspeakers.net/2010/10/customised-menu-bar-with-link-list.html

      Cheers :)

      Delete
  5. Thanks, unfortunately it does not seem to work with Dynamic Views. The posts still open in a sort of rounded popup inside the same tab.

    ReplyDelete
    Replies
    1. Yeap, won't work with Dynamic View templates, unfortunately.

      Delete
  6. how to open multiple blogger posts at click once?

    ReplyDelete
    Replies
    1. I'm sorry I don't know if this can be done.

      Delete

Please use the 'Ask a Question' page to shoot questions that are not related to the tutorial in the post above.