I’m building my website on Wordpress + Bootstrap CDN. I decided to make it on CDN to have no problem with updates in the future plus I read that this way it’s a bit faster.
So the thing is I have a problem with styles. I imported my local ‘style.css’ to ‘header.php’, but since ‘bootstrap.min.css’ from CDN also has its own parameters I can’t apply some things.
How do I rewrite CDN’s parameters? Or is there a way to edit this exact ‘bootstrap.min.css’ file?
Thanks in advance.
@TylerH answered my question and it solved my problem.
Thank you very much!
You can simply just use
wp_enqueue_style
to load those files. Here is an example you can get an idea from.and to write the rules just use
!important
in yourstyle.css
file.When you use
wp_enqueue_style
, you have the option to take control on where your styles and script be used for further references. Here is an example how to use it.