Autowidth of slides
-
As your plugin seems to use OwlCarousel, I’m trying to use an autowidth option on it, like this in functions.php :
add_action("init", function () { remove_shortcode("slide-anything", 'slide_anything_shortcode'); add_shortcode("slide-anything", 'slide_anything_shortcode2'); }); function slide_anything_shortcode2($atts) {.... // roughly the same code except this : $output .= " autoWidth : true,\n"; $output .= " smartSpeed : ".esc_attr($slide_data['slide_transition']).",\n";
I have 3 sliders in one page, but only the last is displayed.
The others have width:0, I think the issue is here, but don’t understand why ?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Autowidth of slides’ is closed to new replies.