How do I use a jQuery plugin in my theme?
-
I am building a theme from scratch using the Whiteboard Framework. I have decided to create custom scrollbars within the theme using the “Vertical Scrollbar Plugin” shown here:
https://www.simonbattersby.com/blog/vertical-scrollbar-plugin-using-jquery-ui-slider/
I’ve been using WordPress for years and have not once, through all my days of reading and tinkering, been able to install a jQuery plugin onto any of my themes. I’ve read all sorts of beginners’ tutorials and “do’s and don’ts”, enough to be a guru if I knew anything about jQuery. But apparently I need things broken down to the bare basics.
What exactly do I put in my header.php and functions.php, and after I do, where do I put the PHP that tells the script which elements to add a scrollbar to? I have my files in the correct places (or maybe I’m still wrong).
Please reference and use the material from the plugin’s home page that I linked to. I’ve already spent too much time copy-paste replacing code from other peoples’ tutorials with code from the plugin page, to no avail.
Also, I do not have a site online. I am building my site offline with XAMPP, so I have no site to link to. But it’s basically the Whiteboard Framework, barely modified.
- The topic ‘How do I use a jQuery plugin in my theme?’ is closed to new replies.