Stubborn Fanatic

Avatar

Documenting Tech Fanaticism


You're browsing: Home » blogger, blogging, hacks news, my hacks, suggested » Blog article: Linklists don’t open in a new window and new hacks

Linklists don’t open in a new window and new hacks


Just a quick update. I found that links added via the link list feature do not open in a new window. This might take away traffic from your blog. The solution to this is however, very simple. Open up you template’s HTML code in expanded widgets format. Copy the entire code into notepad or some text editor and search for a particular link list using its title. (In my case the title is “friends on www”)

Scroll to the line which reads a expr:href=”data:link.target’ blah blah blah… and append target=’_blank’ over there, as shown in the example below. As this piece of code is in a loop (b:loop) you need to type it only once and there you are. So go ahead and make the modification.

<b:widget id=’LinkList2′ locked=’false’ title=’friends on www’ type=’LinkList’>
<b:includable id=’main’>

<b:if cond=’data:title’><h2><data:title/></h2></b:if>
<div class=’widget-content’>
<ul>
<div id=’link’>
<b:loop values=’data:links’ var=’link’>
<li><a expr:href=’data:link.target’ target=’_blank’><data:link.name/></a>
</li>
</b:loop>
</div>
</ul>

Also check out some cool new hacks I came across recently:

1. Turning labels into menu tabs (used in my blog)
2. Peek-a-boo label drop downs (used in my blog)
3. Convert link lists to thumbnail picture list

Update: I found an article which tell why one should avoid setting all links to open in a new window. It tells how this setting can backfire and kill traffic. Read it here.


No related posts.

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
PDF version
  • Sasi priya
    Hey....this is priya....i want my linklists to open in a new window...i tried wat u said but...it didnt workout...well ill day i made a mistake..so can u help me out..ill give u my html code and can u make changes to it and send it back to me or somethin like that..
    plzzz suggest me..
    ill be w8in for ur reply
  • Ari
    Thank you for this useful tip! I'm a web development veteran, but CSS is a new animal for me.
  • Ted
    Hi, I create post on my blog, in that post I put a link. I put the target="_blank", but it still opens in the same window. The link I tried to create is:

    HREF="http://www.amazon.com/gp/music/wma-pop-up/B000IHY9RU001002/ref=mu_sam_wma_001_002/102-8241256-7896968" target="_blank">song clip here
    (note "a" tags are removed to post here"

    what is wrong with the above that the target doesn't work? Any ideas?
  • Sammie
    not sure why I can't find out where to change this. Any help you can provide?
  • Vivek Sanghi
    thanks!
  • lola
    you are totally awesome. this is great. thanks so very much for sharing!!
  • Vivek Sanghi
    Welcome back new-to-code. While there is no hack to set the comments to display on the main blog page as it loads. There is a hack which allow readers to views comments without navigating away from the main blog page. Check it out here
  • new-to-code
    Hi! Is there a way to set my blog (blogger beta) so that the all comments are visible? As it is now it just tells you how many comments there are in a post.
  • new-to-code
    Thx a lot! It is good to know it isn't just me having the issue :)
  • Vivek Sanghi
    @new-to-code:
    I have looked into the template and could not find any coding that deals with links appearing within the post. With reference to this issue and other stuff that appears inside a post, I think no modifications can be carried out in the template. Blogger should make changes at their end. However, you might want to put this question on the blogger help-group (on google groups). All the best.
blog comments powered by Disqus