Hello, where would you add a reference link to uti...
# suitecommerce
r
Hello, where would you add a reference link to utilize bootstrap js CDN to be able to use it in an extension? Or, is it a better practice to install bootstrap with npm and include it with a require statement? If so, where do you install bootstrap within your project or extension?
s
As Kerrie said below, Bootstrap is a core part of the application. If you want to use its styles then just go straight ahead. Was there something specific you had in mind?
r
Thanks to both of you for the clarification. I'm just trying to utilize bootstrap for additional styling of a table I've added to the PDP. I was confused because adding the bootstrap class attribute, class="table table-striped", to the table tag, showed no changes after deploying. I have finally gotten the table styling to show now on the site. Not sure if it was a deployment issue, activation issue, or caching issue, but it's showing properly now. Thanks again for the help!
s
My advice is to look at how tables are styled in other parts of the application and copy them as much as possible. Typically, you want to create semantic names for your own customisations then use Sass to extend and modify the base classes we have for those areas.
Particularly if you're styling a list of records, for example, we have specific classes for that, so most of the work is already done for you
k
I can add that not all bootstrap css files are loaded by default - you can check the theme - Shopping>shopping.scss You can add additional modules there.
r
Thank you both for the additional input!