Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
.xbSidebar-nav a[data-nav-id='NAVID'] i:before, .offCanvasMenu-linkHolder [data-nav-id="NAVID"]:before {
content: "\f3f6";
}
.xbSidebar-nav a[data-nav-id='steamauth'] i:before, .offCanvasMenu-linkHolder [data-nav-id="steamauth"]:before {
content: "\f3f6";
font-family: "Font Awesome 5 Brands";
}
Doesn't seem to work on off CanvasI'm looking into a method of making this easier... we'll see how it goes. For now you can use CSS like this to target both:
Code:.xbSidebar-nav a[data-nav-id='NAVID'] i:before, .offCanvasMenu-linkHolder [data-nav-id="NAVID"]:before { content: "\f3f6"; }
Replace NAVID with your custom nav ID. If it's a brand icon, you can do this:
Code:.xbSidebar-nav a[data-nav-id='steamauth'] i:before, .offCanvasMenu-linkHolder [data-nav-id="steamauth"]:before { content: "\f3f6"; font-family: "Font Awesome 5 Brands"; }
Yes worked with side nav but not with off CanvasDid you edit BOTH nav ID's?
Tried all sorts of css but nothing has changed default icons for off CanvasCan you post the CSS you're using? You may need to use an important! tag on it potentially.
I'm currently using the one you have postedI'll need to see the CSS you're trying. In viewing your site but need to check the CSS as well.
.xbSidebar-nav a[data-nav-id='EWRporta'] i:before, .offCanvasMenu-linkHolder [data-nav-id="EWRporta"]:before { .m-faBase();.m-faContent("\f4c9"); }
a[data-nav-id="EWRporta"] i:before { .m-faContent("\f4c9"); }
#XF.XenBase .offCanvasMenu-content a[data-nav-id="EWRporta"]:before {
content: "\f4c9" !important;
}
I'm not seeing any of that CSS load at all, unfortunately.
I mean this would overwrite the home icon:
Code:#XF.XenBase .offCanvasMenu-content a[data-nav-id="EWRporta"]:before { content: "\f4c9" !important; }
If you want me to try to investigate what's going on with the other CSS I may just need a login, something is not right as it's not showing as I mentioned. Don't submit a login here but if you want to take that route just submit a ticket.
Nope nope its all good now thanks again for your help spent hours trying to get it to work but you saved they day ?Are you still seeing a couch? I'm not seeing a couch at all
This will let you set the icon for XFRM
Code:#XF.XenBase .offCanvasMenu-content a[data-nav-id="xfrm"]:before { content: "\f013" !important; }
Oh I really hope it doesn't I like to change it very frequently because I'm never happy how it looksI'm looking into a method of making this way easier just as a heads up!
That change may come at the price of edits on a future update but I'll make sure it's clear as to what needs to be done.
a[data-nav-id="xa_ams"]:before { .m-faContent("\f15c"); }
You don't need to be sorry to make a top style takes a lot of work so there is going to be mistakes! You did really well and there is always work aroundsYa, I definitely made a mistake when it came to implementing these icons on the off-canvas menu. I believe CSS like this should work in a future update to where it'll update in the normal horizontal navigation, off-canvas nav, and mobile navigation.
Code:a[data-nav-id="xa_ams"]:before { .m-faContent("\f15c"); }
Right now it's a bit of a mess and I'm sorry about that!
I had this same issue with the off canvas menu. Simply adding the relevant navid and code below to xb_canvas.less worked a treat for me with no additional coding required.For the icons to work on side nav I'm using: xb_canvas.less
a[data-nav-id="NAVID"]i:before { .m-faContent("\f073"); }
LOL ironically it was a sofa icon I was looking to add. HAHA!I just need to change the icon don't want a couch as an icon
No matter whatI had this same issue with the off canvas menu. Simply adding the relevant navid and code below to xb_canvas.less worked a treat for me with no additional coding required.
Code:a[data-nav-id="NAVID"]i:before { .m-faContent("\f073"); }
Make sure it's "i:before" and not just ":before" else you'll bork the theme look competely.
LOL ironically it was a sofa icon I was looking to add. HAHA!
Thanks again
a[data-nav-id="NAVID"]i:before { .m-faContent("\f073"); }
#XF.XenBase .offCanvasMenu-content a[data-nav-id="xfrm"]:before {
content: "\f013" !important;
}
<i class="fad fa-loveseat"></i>