0

I'm making a Wordpress Shortcode and I'd like to use bootstrap only in that section of the page.

<div id="shortcode-container">
    <!-- Bootstrap active here -->
</div>

I was thinking of prefixing all bootstrap class, but what would be the best way of doing it? I was trying by modifying the bootstrap files but it doesn't seem the best way of doing it.

I have tried this answer but I don't get how to use LESS with bootstrap. How to namespace Twitter Bootstrap so styles don't conflict

  • 2
    The best way to handle this is to write custom CSS for your specific needs. There’s no need to load a full CSS framework just for a single plugin. In fact, loading a full CSS framework might end up causing various compatibility issues depending on which theme the site is using. – Kirk Beard Jan 31 '22 at 12:45

0 Answers0