- Messages
- 4,809
- Website
- www.xenfocus.com
Sidebar widgets in xenfocus themes have FontAwesome icons assigned to them. Some 3rd party widgets may display an ellipsis (...) if no icon has been assigned. To change this, you must first view your page source (right click > View Page Source). Scroll down until you find the code for your widget. For this example, we'll be referring to a widget called "Attachment Stats", which looks like this:
The important part here is the data-widget-definition code, which we'll need in a moment.
Next, head over to the FontAwesome icon database and find an icon which you'd like to use. For this example, we'll use a paperclip. We need to know it's icon name, which is paperclip.
With these two pieces of information in mind, head over to your extra.less file and paste the following (replacing ozzModzAttachStats and paperclip with your own values):
If you still require assistance after following this tutorial, simply post below and I'll do my best to help!
HTML:
<div class="block" data-widget-id="14" data-widget-key="attachment_stat" data-widget-definition="ozzModzAttachStats">
The important part here is the data-widget-definition code, which we'll need in a moment.
Next, head over to the FontAwesome icon database and find an icon which you'd like to use. For this example, we'll use a paperclip. We need to know it's icon name, which is paperclip.
With these two pieces of information in mind, head over to your extra.less file and paste the following (replacing ozzModzAttachStats and paperclip with your own values):
Less:
.block[data-widget-definition="ozzModzAttachStats"] .block-minorHeader::before{
.m-faContent(@fa-var-paperclip);
}
If you still require assistance after following this tutorial, simply post below and I'll do my best to help!