Thanks for the response First, you should know that I've never worked with nodejs coding before I decided to switch our forum to NodeBB about a month ago (my experience is in PHP and Python mostly). The problem is very likely something I did incorrectly.
So the plugin I am using is called Slick. You can find it here: http://kenwheeler.github.io/slick/
I tried a few methods to add it to my fork of lavender. I got it to the state it is in now using a tip @psychobunny gave on a topic I found in this forum. I can't recall which topic. It was made clear that the method was not the "proper" way to do it, but I had couldn't get it to work using the proper method so I tried the shortcut. Anyway, here's what I did.
- I edited the slick script as follows:
Changed this....
(function(factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports !== 'undefined') {
module.exports = factory(require('jquery'));
} else {
factory(jQuery);
}
}(function($) {
...
To this:
(function(factory) {
/*if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports !== 'undefined') {
module.exports = factory(require('jquery'));
} else {
factory(jQuery);
}*/
window['Slick'] = factory(window['jQuery']);
}(function($) {
...
Next, I added the script filepath to plugin.json. Then I added this to lavendar.js:
(function () {
$(document).ready(function () {
if ($('.category-page').length) {
$('.subcategories').slick({
...
Thanks in advance for your help. I do appreciate it
Cheers!