[Product Post] Theme Tip: Changing Icon Colors
You can change this by making a small change to your CSS, by using a different Sprite file. Using our example above, we change icons to be white:
To do this, all you need to do is add the following to the CSS tab of your customize theme section.
.NavBar .MeMenu .Sprite16 {
background-image: url("//vanillicon.com/sprites/sprites-14-ffffff.png") !important;
}
You change the colors of the icons or glyphs to any color your want. Just change the last 6 alpha-numeric characters to the HEX color code you want (without the # tag). So for example, white is ffffff, black is 000000.
As we noted, the above modification works on the Bootstrap theme. If you are using older themes, such as baseline or dark theme, you are using an older sprite template:
You have the option of four colors: Black, Dark Grey, Light Grey and White. Each requires you to shift the starting points of the sprites. So for example, if you use the default and are seeing black icons, below will change this to white icons:
.SpDashboard, .SpOptions {
background-position: 0 -212px !important;
}
.SpInbox {
background-position: -16px -228px !important;
}
.SpNotifications {
background-position: -32px -212px !important;
}
.SpBookmarks {
background-position: -80px -245px !important;
}
.SpSignOut {
background-position: -2px -102px !important;
}
We hope you found these tips helpful. Check under the product category for more product tips.
Vanilla Forums offers a cloud based solution which can easily be themed to match your brand. Try Vanilla Forums Cloud Solution free for 30-days.