2 sam2kb Jun 15, 2010 01:38

Try this too, it should do exactly what you need
add_js_headline('
jQuery(function(){
// Open all links in new window/tab
jQuery(".widget_core_coll_link_list a[href^=\'http:\']").attr("target", "_blank");
});
');
Sam:
Thanks so much for the help, but it's not working. I assume that when you say "Add this code at the top" you mean below the first "<?php" tag?
Sorry, I'm really new to PHP. :)
What skin are you using?
I'm using a version of EvoCamp that I modified to be 3 columns.
Then you need to add the above code in all files ending on .main.php right after this
// Do inits depending on current $disp:
skin_init( $disp );
Still no luck. I sure appreciate your help though.
I added that code, (I tried both), to the 4 files that end with .main.php
The sidebar links still open in the same window.
The blog is at: richardfmiller.com
Got it!!
From reading some other posts, I realized that I had to add:
require_js( '#jquery#' );
to the beginning of your code.
Thanks a heap, Sam! You rock!
It's easier to make all external links open in new window.
Add this code at the top of skins/yourskin/index.main.php