1

I downloaded a theme that has font awesome icons on the navbar section. When I try to change the color of that icons it remains the same.

I tried

.fa-home {
    color:black;
}

But it doesn't work.

2 Answers2

1

Try to apply the style to the :before element, where the icon is.

.navbarClass li [class^="fa-"]:before,
.navbarClass [class*=" fa-"]:before {
...
    color: #COLOR;
}
agustin
  • 2,187
  • 2
  • 22
  • 40
0

The problem is with theme, it may have defined the color somewhere in the css file. Search for that and follow the classes of icon so you can find where the color of icon is defined. Or put the css class at the top of the file and add an "!important". Like:

Color: black !important;
Akmal Arzhang
  • 357
  • 4
  • 14