Rationalise - Question | JoomShaper

Rationalise

A

Addington

Helix Framework 11 months ago

I have a problem with too many css rule overwrites. Just to set one menu link colour in the top bar, there are:- custom.css default.css (aka preset1) bootstrap.min.css system-j4.min.css

Can you give me some guidance on what I can reasonably do?

0
3 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #176164

Hi Charles, you cannot edit last 3 files, only first one.

It means that you have to use ID name and class name, for example

#sp-top-bar ul.sp-contact-info li a {color: yellow;}

OR

#sp-top-bar ul.social-icons li a {color: red;}

OR more universal hack

#sp-top-bar .container a, #sp-top-bar .container li a {color: green;}

as you know (I hope) in CSS you can also use !important value at the end. From time to time, you can use it in custom.css to force the color value.

1
A
Addington
Accepted Answer
11 months ago #176182

can i just check: I must have colors in preset1 - i can't just choose to ignore it and go straight to custom.css?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #176231

2nd option is more bulletproof.

0