Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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