No success adding and using custom JS assets. Need your help

[ad_1]

Hey guys,

I’m sorry if this is a newbie question but I’ve searched and can’t find a solution.

I’m creating a WordPress website using Gutenberg and the Kadence theme. I want to add a custom Javascript asset: a jQuery lightslider. This one for example:

I tried with various plug-ins: “Simple Custom CSS and JS” and “WPCode” but I couldn’t get it to work.

What I want is simple: I want to use this custom slider on a specific page, at a specific spot.

Where exactly should I put the JS code? How do I call it in WordPress? Should I create a child theme and put everything in the assets folder? What’s the way to go about this?

Thank you for your help!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer