Last active
May 4, 2022 00:54
-
-
Save leepettijohn/57a9d1fdfc8b2f1b0ebd to your computer and use it in GitHub Desktop.
Opening a 301 Redirect in a New Tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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