This Social Icons App for Enonic XP enables an editor to display a area on their website with connections to their desired social network-profiles.
The app itself is a part which is drag-and-drop'd to the wanted region on the website, and displays the app configurations.
For the Social Icons App to be displayed on the desired website as intended, there is a set of configuration one must go through.
One must have installed the application Content Studio.
When selecting the application on the website, use the pencil-icon to configure the application with the following steps:
-
Click the "Add Social Icon" button.
-
Fill in the website URL for the social network. Ensure that
http://
orhttps://
is present. -
Find the desired icon to use on https://www.fontawesome.com and use its name, e.g. "twitter" or "facebook-f".
-
Write the alternative text that will be shown in case of screen reader or if the icon won't load.
-
Apply changes.
All the social media platforms added will be automatically shown in the Social Icons-part when dragged into a region.
<div class="social-icons">
<h1>Follow us</h1>
<ul class="social-network social-circle">
<li data-th-each="item : ${socialIcons}">
<a target="_blank" data-th-href="${item.url}" data-th-title="${item.altText}">
<i data-th-class="${'fab fa-' + item.font}"></i>
</a>
</li>
</ul>
</div>
If you wish to change the colours of the icons, use the classes social-network
for the icon itself, and social-circle
for the circular border around the icon.
App version | Required XP version |
---|---|
1.0.0 | 7.0.0 |
- Initial release.