Open Blogger Picture Gadget Links in New Tabs


When you upload a picture to Blogger's picture gadget, you have the option to include a link to that picture. By default, the link loads on the same tab where the gadget is located - thus shifting your reader away from your domain. The tweak in this page will show you how you can make the link open on a new tab. Let's cut to the chase shall we?

Step 1:

If you're using the old Blogger interface: Go to Dashboard - Design - Edit HTML - Expand Widget Template

If you're using the new Blogger interface: Go to Dashboard - Template - Edit HTML - Proceed - Expand Widget Template

Next, find and delete the following lines:
<b:if cond='data:link != &quot;&quot;'>
<a expr:href='data:link'>
The lines to be deleted:


Step 2:

Paste the following lines in place of the deleted lines in Step 1:
<b:if cond='data:link != &quot;&quot;'>
<a expr:href='data:link' target='_blank'>
The new lines in place:


Click on 'Save' when you're done.

Note: Repeat Step 1 and 2 for x number of times - where x is the number of picture gadgets in your blog. For example, if you have 3 picture gadgets, the above code will appear 3 times in your template, and you need to make modifications to all 3 of them.

That will be all folks. Cheers and God bless.