- Messages
- 5,029
- Website
- www.xenfocus.com
All xenfocus styles come with built-in social media icons. To configure them, browse to Style Properties > Xenfocus: Social icons
You'll be presented with options for different locations which can be enabled or disabled.
At the bottom, a text box can be used to enter your social media links. The links must be placed inside an <li> tag, like so:
If you'd simply like to show a logo instead of text, omit the text entirely like this:
Icons are automatically applied depending on the URL, so if the URL contains "facebook", the facebook icon will be shown. If your URL doesn't automatically create an appropriate icon, further css code may be required.
Adding your own social icons
If FontAwesome doesn't have an icon for your social media icon (such as Mastodon), you'll need to use an image icon instead. First, add your HTML code using the same method as above.
Next, add this to your extra.less file, replacing
You'll be presented with options for different locations which can be enabled or disabled.
At the bottom, a text box can be used to enter your social media links. The links must be placed inside an <li> tag, like so:
Code:
<li><a href='https://www.facebook.com/xenfocus' target='_blank'>Facebook</a></li>
If you'd simply like to show a logo instead of text, omit the text entirely like this:
Code:
<li><a href='https://www.facebook.com/xenfocus' target='_blank'></a></li>
Icons are automatically applied depending on the URL, so if the URL contains "facebook", the facebook icon will be shown. If your URL doesn't automatically create an appropriate icon, further css code may be required.
Adding your own social icons
If FontAwesome doesn't have an icon for your social media icon (such as Mastodon), you'll need to use an image icon instead. First, add your HTML code using the same method as above.
Next, add this to your extra.less file, replacing
https://testing.com
with your URL, and https://site.com/icon.png
with the URL to your icon.
CSS:
.xenfocus-social a[href="https://testing.com"]::before{
background-image: url('https://site.com/icon.png');
background-size: contain;
content: '';
background-repeat: no-repeat;
background-position: 50%;
-webkit-mask: none;
mask: none;
background-color: transparent;
}
Last edited: