Created
June 12, 2015 17:29
-
-
Save nickberens360/cc5e1c4e0682a6d121c5 to your computer and use it in GitHub Desktop.
wordpress: add masonry to wp
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
if (! function_exists('slug_scripts_masonry') ) : | |
if ( ! is_admin() ) : | |
function slug_scripts_masonry() { | |
wp_enqueue_script('masonry'); | |
wp_enqueue_style('masonry', get_template_directory_uri().'/css/'); | |
} | |
add_action( 'wp_enqueue_scripts', 'slug_scripts_masonry' ); | |
endif; //! is_admin() | |
endif; //! slug_scripts_masonry exists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment