JQuery Less Work to Do More

JQuery Tips

A guideline to add and utilize jQuery library to WordPress and HTML Site. JQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. It is the most popular JavaScript library in use today.

  1. To load jQuery library in static website place this code before the end body tag.
    [wpfilebase tag=file id=39 tpl=default /]
  2. To load jQuery library in wordpress site, place this code before the end body tag.
    [wpfilebase tag=file id=40 tpl=default /]
  3. To load custom.js file (any file name) in static website place this code before the end body tag and after the jQuery library.
    [wpfilebase tag=file id=41 tpl=default /]
  4. To load custom.js file (any file name) in wordpress site place this code before the end body tag and after the jquery library.
    [wpfilebase tag=file id=42 tpl=default /]
  5. To load custom.js file (any file name) in wordpress site through enqueue function, place this code in functions.php file. Remember to put your custom.js file inside the js folder.
    [wpfilebase tag=file id=43 tpl=default /]
  6. To use smooth scrolling to top with fade in and fade out animation, use this code.
    [wpfilebase tag=file id=44 tpl=default /]

Published by

Emdad Khan

I am Emdad Khan, A WordPress Theme Developer and Author of BN Web Design Website. A full time Freelancer on WordPress Theme Development & Optimization as well as blogger.

Leave a Reply