Skip to content

Instantly share code, notes, and snippets.

@leepettijohn
Last active May 4, 2022 00:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leepettijohn/57a9d1fdfc8b2f1b0ebd to your computer and use it in GitHub Desktop.
Save leepettijohn/57a9d1fdfc8b2f1b0ebd to your computer and use it in GitHub Desktop.
Opening a 301 Redirect in a New Tab
/* Add this to your Genesis Theme Settings Page
in the Header and Footer Scripts Section
<script type="text/javascript"> //Be sure to add this before and after too */
jQuery(document).ready(function($){
$('a[href$="newtab"]').attr('target','_blank');
});
//</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment