Skip to content

Instantly share code, notes, and snippets.

View jpmarchand's full-sized avatar

Jean-Philippe Marchand jpmarchand

View GitHub Profile
View functions.php
<?php
//* Do NOT include the opening php tag
//* Add JS to allow elements to be faux anchors
//* Force links to be opened in a new tab
add_action( 'wp_footer', 'bg_script_clickable' );
function bg_script_clickable() {
echo '<script type="text/javascript">
jQuery(document).ready(function($) {