Skip to content

Instantly share code, notes, and snippets.

@nutsandbolts
Created June 6, 2014 00:05
Show Gist options
  • Save nutsandbolts/1b7b080a4a4185bba23f to your computer and use it in GitHub Desktop.
Save nutsandbolts/1b7b080a4a4185bba23f to your computer and use it in GitHub Desktop.
Footer script to open all comment links in a new tab (goes in Genesis theme settings > footer scripts box)
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
$(window).ready(function(){
//adds target blank to all comment links
$('#comments a').each(function(){
$(this).attr('target','_blank');
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment