Can links be opened in new tab/window?
Twitter in the Morefoot area. I'd like to set the hyperlinks to be clickable
Started by
dalemccready
, Dec 22 2010 05:58 AM
13 replies to this topic
#1
Posted 21 February 2011 - 01:37 PM
#2
Posted 21 February 2011 - 02:45 PM
Hi Elena - You could modify the core file to do that. But, I'd recommend just adding some simple jQuery to open links in that div in a new window
#3
Posted 21 February 2011 - 04:04 PM
ThX Kate, can u plz give me more instructions how to do that?
#4
Posted 21 February 2011 - 06:33 PM
You would have to add custom code to the header scripts portion of the theme settings under - CUSTOM CODE
`
`
#5
Posted 21 February 2011 - 06:53 PM
I've add it, but there is no change...
#6
Posted 21 February 2011 - 10:45 PM
Hi Elena,
Try putting the code in the footerscripts area.
#7
Posted 22 February 2011 - 03:51 PM
Jimmy, thx 4 answer. I've tried both options, but still not working?
1st I tried this:
In code - this wokrs ok!
<?php twitter_messages(pagelines('twittername'), 1, false, false, '', true, false, false); ?>
2nd this:
First in header, and then in footer....
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function() {
$j(".icons a").attr('target', '_blank');
});
</script>
Links are open, but in same window.
Are you shure that code is ok?
#8
Posted 22 February 2011 - 05:39 PM
`
`
No the prior code was wrong because I thought you wanted different links to be opened. Add the above to the header as before
#9
Posted 22 February 2011 - 06:20 PM
@cmunns, Thank you soooooo much, it's working now!!!
(but I put code to footer, still no working in header)
#10
Posted 23 February 2011 - 01:55 AM
Here's a very simple solution:
Thanks, Bryan











