1 dananzo Mar 14, 2010 02:17
3 dananzo Mar 14, 2010 02:33
atually no, that doesn't work...
that makes every single link open in a new tab.
not good.
4 tilqicom Mar 14, 2010 03:19
i dont know what the hell a sidebar_link is.. it never sounded useful to me , so i ve never checked it out..
We are speaking of the "post type" sidebarlink right ? I assume it gotta has its own class, if it doesnt you can add yours for sure, from widget settings..
so check the existing class or add a class for your sidebarlinks
and
1.call jquery, or include jquery in your page.
2. include this anywhere in your page
<script type="text/javascript">
$(document).ready(function(){
$(".widget_core_coll_link_list").click(function() {
strUrl=$(this).find("a").attr("href");
window.open(strUrl);return false;
});
});</script>
edit: idk why, but you cant add custom class to sidebar links, i believe you are gonna have to use the default class which is "widget_core_coll_link_list", updated above accordingly.
5 dananzo Mar 14, 2010 03:33
yea i wasn't sure what it was either, until i needed to add a link haha. and yea, it's the post type one.
i'll be sure to try this. thanks :)
6 dananzo May 10, 2010 09:25
oh i happened to be glancing over my old posts and thought i would update this since i figured it out.
basically i assumed that the text one types into the "link to url" box would basically become a variable, we'll call x, b2evo sends that to the code with the html to link to that site (x).
i.e.
<a href="x">Link Title</a>
so i just thought ahead and made my x this:
www.yoursite.com" target="_blank
leaving the closing quotes for b2evo to add.
works perfectly :)
hope it makes sense lol
7 lucyhar Oct 10, 2013 16:41
Easier than your tip is my tip, I found out now! :)
When you publish a new "Advertisement" in the field "Link to the site/url" just put the following:
http://www.yoursite.com target = "_blank"
And the announcement of the Sidebar will open in a new window!
Good ads!
got it sorry.
http://forums.b2evolution.net/viewtopic.php?t=19479&highlight=sidebar+window
lol.