Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Bootstrap Native Carousel Plugin #261

Open
ShapesGraphicStudio opened this issue Jul 4, 2021 · 1 comment
Open

Add Bootstrap Native Carousel Plugin #261

ShapesGraphicStudio opened this issue Jul 4, 2021 · 1 comment

Comments

@ShapesGraphicStudio
Copy link

ShapesGraphicStudio commented Jul 4, 2021

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
Copy link
Author

ShapesGraphicStudio commented Jul 4, 2021

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 ShapesGraphicStudio changed the title Add Carousel JS Add Bootstrap Native Carousel Plugin Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant