Archived topic
Advice about a Bootstrap modal
3 replies · Started by Matthew on June 7, 2021
I would like to use a modal from Bootstrap:
https://getbootstrap.com/docs/4.0/components/modal/
Do I just reference their CDN and get cracking with the supplied source code for this modal component or is a more nuanced approach recommended?
And is it safe or are there any issues, with bootstrap and GP etc.
thanks,
Hi there,
thats correct.
However, Bootstrap is going to load a LOT of CSS that you won't require, and some of this will possibly ( most likely ) conflict with the themes styles.
Better to use a modal/pop-up plugin for the WP Repository that doesn't use Bootstrap.
Thhat's what I was wondering as I tried the W3schools framework too.
I placed in the link to their CDN and it changed around all my styles on everything. Which is not ideal.
So you can't have any of these frameworks for selective components then?
Hi Matthew,
So you can’t have any of these frameworks for selective components then?
Frameworks are huge. It's hard to tell which one will conflict with what so the grueling task of looking for specifics may make the implementation of frameworks not worth doing.
Small and specific libraries can be implemented though. Because this for these ones, you're exactly sure what they do. And even if you're not, the library is small enough to skim around and have an idea of what it does fully.
Example would be - http://bootboxjs.com/