Hi @rebecka,
I’m very sorry – I missed out some important custom CSS that you need to include to achieve what you’re after.
The snippet I provided defines the icon that will appear before a given link:
.main-navigation a[href*="/about"]:before {
content: "\f304";
}
In addition to the above, you will also need to include the following to style and “tell” the theme that you wish to use Genericons:
.main-navigation a[href*="/about"]:before {
display: inline-block;
font-family: Genericons;
font-size: 24px;
font-weight: 400;
letter-spacing: 0;
line-height: 28.8000431061px;
margin-right: 4px;
text-decoration: none;
text-transform: none;
width: 24px;
height: 24px;
vertical-align: top;
-webkit-font-smoothing: antialiased;
}
Add different CSS selectors to the list at the start of the above snippet, as you add different icons. For example:
.main-navigation a[href*="/about"]:before, .main-navigation a[href*="/blog"]:before, .main-navigation a[href*="/contact"]:before
Please note, the above also assumes that you have the Jetpack plugin installed, as that plugin enqueues the file for Genericons.
Hope that’s clear! You know where to find us if any questions come up.