Last active
December 28, 2017 19:02
-
-
Save anwerashif/481a5618219d50c3d5c975e741a0f7ce to your computer and use it in GitHub Desktop.
jQuery Modal Image Function
This file contains hidden or 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
<?php | |
// Do NOT include the opening PHP tag | |
// Load Script | |
add_action( 'wp_enqueue_scripts', 'selected_option_js' ); | |
function selected_option_js() { | |
wp_register_script( 'sm-modal-script', get_template_directory_uri() . '/js/modal.js', array( 'jquery' ), '1.0.0', true ); | |
wp_enqueue_script( 'sm-modal-script' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment