/***** Navbar icons *****/
.p-navEl a:before {
.m-faBase();
display: inline-block;
text-align: center;
padding-right: 5px;
margin-top: 5px;
border-radius: 30px;
line-height: normal;
}
.p-navEl a[data-nav-id='EWRporta']:before {.m-faContent("@{fa-var-home}");}
.p-navEl a[data-nav-id='forums']:before {.m-faContent("@{fa-var-comments-alt}");}
.p-navEl a[data-nav-id='rules']:before {.m-faContent("@{fa-var-list-ol}");}
.p-navEl a[data-nav-id='voting']:before {.m-faContent("@{fa-var-poll}");}
Thank you!The next XF 2.1 release includes FA 5.6.
View attachment 191019
I can't get the submenu ones to work using that code @mcatze
this is what I have:
Code:/***** Navbar icons *****/ .p-navEl a:before { .m-faBase(); display: inline-block; text-align: center; padding-right: 5px; margin-top: 5px; border-radius: 30px; line-height: normal; } .p-navEl a[data-nav-id='EWRporta']:before {.m-faContent("@{fa-var-home}");} .p-navEl a[data-nav-id='forums']:before {.m-faContent("@{fa-var-comments-alt}");} .p-navEl a[data-nav-id='rules']:before {.m-faContent("@{fa-var-list-ol}");} .p-navEl a[data-nav-id='voting']:before {.m-faContent("@{fa-var-poll}");}
Not all are supported as of now, though.You should check the given icons here: https://fontawesome.com/icons?d=gallery
Well, I stand corrected there. I can get calendar-alt (5.6.0) to reproduce the same, but not blog (5.6.0).
We use essential cookies to make this site work, and optional cookies to enhance your experience.