Blogger beta links hack (2)

Por | 14 de Setembro de 2006

Like i wrote here, when you add your links to blooger beta blog through the Link list Widget we cant specify how the link should be opened( in a new window). I posted a solution but Viveki Sanghi had a better idea on how to it and still use the Links widget to do it.

Go to your HTML template and click on EXPAND WIDGETS and find the following piece of code and insert the bit of code in red.

<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>

Thats it, from now all your links will open in a new window.

Deixe uma resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *