-
-
Save phoenixMag00/6bb73570d92437ee7707 to your computer and use it in GitHub Desktop.
Snippet for pabloplazalastras
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
function jmig_js() { | |
global $post; | |
if( has_shortcode( $post->post_content, 'gallery') ) { | |
wp_register_script('masonry_mine', | |
get_stylesheet_directory_uri() . '/inc/assets/js/Masonrymine.js', | |
array('masonry'), | |
'2.1.6', | |
true); | |
wp_enqueue_script('masonry_mine'); | |
} | |
} | |
add_action( 'wp_enqueue_scripts', 'jmig_js'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment