PurabTech is technical blog for Programmer and Coders
smart way to use jquery in wordpress theme
I created many wordpress themes for various purpose and clients. Jquery is common requirement for all the project. That is for menu, slider or validation and for effects. In wordpress adding the Jquery is very easy because wordpress itself uses the Jquery for admin panel. They provided the wordpress api for adding the jquery in wordpress theme files.
smart way to use jquery in wordpress theme
wordpess developers are always looking for wordpress jquery plugin, wordpress include jquery, wordpress jquery ui, wordpress jquery noconflict, wordpress jquery theme, wordpress jquery version, wordpress jquery slider, wordpress jquery not working. Here is the solution
smart way to use jquery in wordpress theme
Following is the simplest way to add jquery in wordpress theme.You just need to use the following code in your wordpress theme functions.php file.
jQuery itself is just a library, and if you need it, you probably will have some custom javascript code (initializing jQuery plugins like sliders, carousels etc) in your custom scripts.js (app.js or whatever). So, the smartest way to include jQuery is to call it as a dependency for your custom script.
Very useful information about jquery and wordpress. Thanks for information.
jQuery itself is just a library, and if you need it, you probably will have some custom javascript code (initializing jQuery plugins like sliders, carousels etc) in your custom scripts.js (app.js or whatever). So, the smartest way to include jQuery is to call it as a dependency for your custom script.
good ……… thankyou for this wordpres theme