Skip to content

Instantly share code, notes, and snippets.

@ifamily
Created July 10, 2015 12:32
Show Gist options
  • Save ifamily/15e5e7cc8f838bcac1d1 to your computer and use it in GitHub Desktop.
Save ifamily/15e5e7cc8f838bcac1d1 to your computer and use it in GitHub Desktop.
Font Awesome CSS example
/* Prepend a Font Awesome icon before link text or page title in Genesis */
.genesis-nav-menu .menu-item-124 a:before,
.page-id-2 .entry-title:before{
content: "\f0c0";
font-family: FontAwesome;
margin-right: 5px;
display: inline-block;
font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
transform: translate(0, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment