Hey - I am building a new development store on Levels, and can't for the life of me get a single custom javascript to execute within the levels framework.
I am wanting to add a simple Flexslider on the SFNT page, and want a simple script that is used for image maps on responsive designs on the Category pages - and no matter where I put the JS and call files within the pages (global head, page header, page footer, within the correct SFNT or CTGY part of the scripts.js file), I get two errors, specifically:
ReferenceError: $ is not defined
$(...).imageMap is not a function or $(...).flexslider is not a function
When I try these scripts on other sites, they work - what am I missing here? Is there a video or guide to adding your own Javacript in MIVA docs? I can't find anything!
I am not a pro when it comes to scripts, but these seem like really basic - is there a special process for MIVA frameworks to execute scripts?
Also - the .js/css files are being correctly uploaded and executed on my Firefox Console, I feel the issue is with the calling of them. I may need to write it a bit differently than what the developers give on their site?
For reference, the flexslider I am using this call on the SFNT page :
// Can also be used with $(document).ready()
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
And for the image map script using on the CTGY pages:
https://www.npmjs.com/package/image-map
Thanks in advance - this is causing me a ton of headaches :)
I am wanting to add a simple Flexslider on the SFNT page, and want a simple script that is used for image maps on responsive designs on the Category pages - and no matter where I put the JS and call files within the pages (global head, page header, page footer, within the correct SFNT or CTGY part of the scripts.js file), I get two errors, specifically:
ReferenceError: $ is not defined
$(...).imageMap is not a function or $(...).flexslider is not a function
When I try these scripts on other sites, they work - what am I missing here? Is there a video or guide to adding your own Javacript in MIVA docs? I can't find anything!
I am not a pro when it comes to scripts, but these seem like really basic - is there a special process for MIVA frameworks to execute scripts?
Also - the .js/css files are being correctly uploaded and executed on my Firefox Console, I feel the issue is with the calling of them. I may need to write it a bit differently than what the developers give on their site?
For reference, the flexslider I am using this call on the SFNT page :
// Can also be used with $(document).ready()
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
And for the image map script using on the CTGY pages:
https://www.npmjs.com/package/image-map
Thanks in advance - this is causing me a ton of headaches :)
Comment