Skip to Content Skip to Menu

🐰 Happy Easter! Great savings on Professional and Developer Memberships! Get 20% off now with code EASTER-2025!

!important style in bootstrap.min.css

1 hour 49 minutes ago #340928 by m.o.skirde
!important style in bootstrap.min.css was created by m.o.skirde
Hi there, you've placed some !important styles in your bootstrap.min.css - in my case the name of a group in group jive.
This is annoying every time you update CB components, as I have to correct the file once again.
Would be very pleasant, if you could strip out those !important styles to enable us to override the default template without additional effort.
Thx in advance,
MO
 

Please Log in or Create an account to join the conversation.

1 hour 40 minutes ago #340929 by m.o.skirde
Replied by m.o.skirde on topic !important style in bootstrap.min.css
Ah, sorry - just found the default plugin. Didn't come to my mind that it could be for this matter as I searched for "template" and the default plugin wasn't shown :-)

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 49075
  • Thanks: 8389
  • Karma: 1458
32 minutes ago #340930 by krileon
Replied by krileon on topic !important style in bootstrap.min.css
The !important in bootstrap.css are added by Bootstrap itself. Give your CSS more weight then add !important and you'll override it. Example as follows.

Bootstrap:
Code:
.cb_template .text-primary { color: blue !important; }
Custom CSS
Code:
.cb_template .myclass .text-primary { color: red !important; }

CB provides a built in means of overriding CSS that takes care of load order for you so you don't even need to do the above. See the below on how to add CSS overrides to CB.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy

This would allow the below to work fine due to load order giving more weight to override styles.
Code:
.cb_template .text-primary { color: red !important; }


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum