Tuesday, July 20, 2010

Is there a way to get hyperlinks on a Blogger.com page to open in a new window?

I've just registered a Blogger.com account and was putting a couple of hyperlinks in one of my first posts, but I can't figure out if it's possible for hyperlinks to open in a new window. I tried putting target=_blank after the site URL in the blog text, but all that did was de-link the text--the linked text then didn't appear as a link. Is there a way to get links both in the body of blog posts on Blogger and also on my Favorites links on the right side of the blog template to open in a new window?

Is there a way to get hyperlinks on a Blogger.com page to open in a new window?
Hiya.





There are two ways to do this: easy and hard...





1) The easy way (in posts):





When you put a link into a post, be sure to add target="_blank" (with the quotes) to the end, like so:





%26lt;a href="http://www.yourlinkhere.com" target="_blank"%26gt;LINK TEXT%26lt;/a%26gt;





2) The hard way (for links in your favorites in the margins):





Go into your Blogger site's Dashboard, and click on the "Template" tab at the top to access the raw code of your site.





Scroll down carefully and find the HTML of the link you want to make open in a new window. Add the target="_blank" (with quotes) to the tag here and it should work. Just be careful not to screw too much with any of the rest of the code in here if you're not HTML-savvy.





Click the blue"Preview" button to check if it worked. If so, you did it right and you're set. Just make sure to hit the "Save Template Changes" button to save what you did.





Good luck!


No comments:

Post a Comment