Bootstrap overrides user.css

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 304
Joined: Tue Mar 24, 2009 12:30 pm

Bootstrap overrides user.css

Post by sokrates_mx5 » Sun May 22, 2022 4:38 pm

I've made a copy of one of my websites by using Akebaa Kickstart.

The two sites are Joomla 3.10.9 and use the Protostar template.

Bootstrap overrides user.css on the new site (fkassan.info), but not on the old site (7-harad.nu). I can't figure out the reason for this behavior.

As a temporary solution I have had to add "!important; for some of the code in user.css, but I need to solve the core problem.

Any ideas what makes bootstrap override user.css?

SharkyKZ
Joomla! Hero
Joomla! Hero
Posts: 2169
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Bootstrap overrides user.css

Post by SharkyKZ » Sun May 22, 2022 6:39 pm

On both of your sites you have Bootstrap CSS loaded after the user.css. Some extension is probably loading it but it shouldn't be necessary because Protostar's template.css already includes Bootstrap styling.

sokrates_mx5
Joomla! Explorer
Joomla! Explorer
Posts: 304
Joined: Tue Mar 24, 2009 12:30 pm

Re: Bootstrap overrides user.css

Post by sokrates_mx5 » Sun May 22, 2022 10:49 pm

SharkyKZ wrote:
Sun May 22, 2022 6:39 pm
On both of your sites you have Bootstrap CSS loaded after the user.css.
No, I cannot see that is the case.

Have a look at the following attachments showing blockquote, where one can see that Bootstrap.css is added before User.css in the first one (Fkassan.info), but not in the second one (7-harad.nu):
Bootstrap-User_Fkassan_web.jpg
Bootstrap-User_7-harad_web.jpg
I do not understand why Bootstrap.css is added to Fkassan.info.
You do not have the required permissions to view the files attached to this post.


Post Reply

Return to “Templates for Joomla! 3.x”