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.
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.@TylerH answered my question and it solved my problem.
Thank you very much!