How to add the js to my wp theme?
http://dynamick.github.io/multiple-filter-masonry/
cuz i need to add this JavaScript to my Top Navigation WP Menu and I do not know how to use the JavaScript files for adding to my Word Press Top Navigation Menu
How to add the js to my wp theme?
http://dynamick.github.io/multiple-filter-masonry/
cuz i need to add this JavaScript to my Top Navigation WP Menu and I do not know how to use the JavaScript files for adding to my Word Press Top Navigation Menu
well, download the js, put it in your folder of choice and enqueue it in the functions.phs w/this code.
wp_enqueue_script( 'your-theme-name', get_template_directory_uri() . '/js/your-js-of-choice.js', array(), '20130115', true );
a quick fyi.
date…you can put any date. I’d assume you’d want to use the day you added the js
the “true” will load your js in the head, a “false” would load it at the bottom. So for a library like masonry you’d of course want it at the top.
hope this help.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.