classic-rocket icon indicating copy to clipboard operation
classic-rocket copied to clipboard

Add Bootstrap Native Carousel Plugin

Open ShapesGraphicStudio opened this issue 3 years ago • 1 comments

Hello,

I know that the documentation says:

Only usefull BS plugin are added individually in _dev/theme.js (carousel and scrollspy are not loaded)

But I need carousel for some of my cms pages. What would be the best practice to load the plugin please?

ShapesGraphicStudio avatar Jul 04 '21 10:07 ShapesGraphicStudio

CSS was quite easy to isolate to avoid unnecessary data to load.

I downloaded latest Bootstrap, opened bootstrap-4.4.1/dist/css/bootstrap.css copied lines 6401 to 6600 and created a new stylesheet named carousel.css where I pasted previous code and imported it by editing my child theme theme.yml.

Now I have to do the same with js.

ShapesGraphicStudio avatar Jul 04 '21 10:07 ShapesGraphicStudio