0

I am trying to customize the css of my website but the default theme has !important property next to color code which I am not able to override.

By Default:

body.theme-whyte .main-wrapper #header .main-nav .content .menu-block-wrapper > ul > li.expanded:hover > .nolink,
body.theme-whyte .main-wrapper #header .main-nav .content .menu-block-wrapper > ul > li.expanded:hover > .nolink::after {
  color: #404040 !important;
}

Changes I would like to make:

body.theme-whyte .main-wrapper #header .main-nav .content .menu-block-wrapper > ul > li.expanded:hover > .nolink,
body.theme-whyte .main-wrapper #header .main-nav .content .menu-block-wrapper > ul > li.expanded:hover > .nolink::after {
  color: #a03021 !important;
}

I am not able to override !important tag. I am a bit new to CSS. Can someone please help me out with this? Thanks in advance.

1 Answers1

0

Order of priority in CSS:

1) In-Line CSS

2) Embedded CSS

3) External CSS

The same will work even if the tags are !important.

Example

If your changes are from stylesheets which are all external, just put the stylesheet with the desired style in, after the one you wish to replace.