grand-lotus-iroh
2/16/2018 - 10:03 PM

Force Open New Tab Gist Github Footer / Meta Links - Child Theme wp_enqueue_script Function

Force Open New Tab Gist Github Footer / Meta Links - Child Theme wp_enqueue_script Function

function theme_name_scripts() {
  wp_enqueue_script('embeds', get_stylesheet_directory_uri().
    '/js/embeds.js', array(), '1.0.0', true);
}
add_action('wp_enqueue_scripts', 'theme_name_scripts');

// Force GitHub Gist Embed Links to Open in a New Tab
// https://stackoverflow.com/a/34870311
// https://www.engagewp.com/force-github-gist-embeds-to-open-in-a-new-tab-or-window/