Assets

JS and CSS resources
To add js/css file on the page, recommended you always use wordpress api like this.
add_action('wp_enqueue_scripts', function(){
wp_enqueue_script('masonry-js','/wp-includes/js/masonry.min.js',['jquery']);
});
NOTE: remember that don't put the <link, <script tag in <head tag directly.
Last modified 2yr ago