function force_load_gwts_slider_assets() {
// 1. Correct paths based on actual plugin folder name
$js_url = plugins_url( 'gallery-with-thumbnail-slider/includes/js/lightslider.js' );
$css_url = plugins_url( 'gallery-with-thumbnail-slider/includes/css/lightslider.css' );
// 2. Load the CSS file so images stay in their proper positions
wp_enqueue_style( 'gwts-lightslider-css-forced', $css_url, array(), null );
// 3. Load the JavaScript slider engine file dependent on jQuery
wp_enqueue_script( 'gwts-lightslider-js-forced', $js_url, array( 'jquery' ), null, true );
}
add_action( 'wp_enqueue_scripts', 'force_load_gwts_slider_assets', 99 );
lightlisder.js and .css weren’t loading by default, had to add them in functions.php