Since jQuery was made, it has been used widely in various website platforms, in lots of ways and features. One of the platforms where the jQuery is applied is wordpress blogging platform. As one of the most popular blogging tool in the world, how can we apply jQuery into a wordpress website?
When feature such as plugin is available in wordpress, of course there are many jQuery plugins that can be use in wordpress website. Mostly of it has already been customized as certain application such as drag and drop, picture gallery, tab interface, buttons, forms and so on.
But some jQuery application may not be available due to the complexity of it to be made into a wordpress plugin or there is nobody even care of making it into plugins. When this happens, manual jQuery code insertion is needed.
What Do We Need?
- Very little knowledge on php, html and css (we will copy and paste the ready-made code and modify it).
- Php, html and css editor. (I suggest Adobe Dreamweaver, because I think it’s really easy to use).
- A website and the jQuery code that we want to use (which inside it will be the *.php files, *.js files and *.css files)
What Next?
- Open your header.php and put this code inside your header before “</head>” line.
You may add it directly to the header.php or open it through your theme editor.- Advertisement -[sourcecode language=’php’]
[/sourcecode]
(target it to the *.js file)[sourcecode language=’php’]- Advertisement -
