Hi,
is there a way to add new social icons to 9.13? I would like to have XING as well.
Olaf
Hi,
is there a way to add new social icons to 9.13? I would like to have XING as well.
Olaf
Hi @ong - not sure about adding new icons, but a quick and dirty way to get where you need to go can be to add a social icon using an icon that you donât intend to use on your site (in my example, Iâm using vkontakte) and then use CSS to swap out the âcontentâ value to the xing value like so:
i.fab.fa-vk:before {
content: "\f168" !important;
}
Hi @EvanCooper,
it took me a while to respond and I like your solution - even though there should be a way in Concrete itself to add new icons.
Olaf
Hi,
as this seems to be a temporary solution only, I took a look at the concretecms code itself.
There is only ONE line to add to ONE file and one can use XING (or many other).
To add a social link open the file: \concrete\src\Sharing\SocialNetwork\ServiceList.php
Search for the function (beginning of file): protected static function getServices()
Search for: [âphoneâ, âPhoneâ, âfa fa-phone-squareâ],
Add this after (or in a new line): [âxingâ, âXINGâ, âfab fa-xingâ],
Done.
Now you just need to set up the new social linke (xing in this example) in the social-settings and you can add it to your page.
Of course, when you update your concretecms this change is lost. Thus you could add this file to the \application\src folder. I will also suggest that the team makes it possible to add new social links via the dashboard.
Olaf
Hi,
actually I changed my doing:
I removed all Concrete base social icons from my page and added a new block to the footer area (where I wanted the icon(s) to show up).
<p>Social: <a href="https://www.linkedin.com/in/YOUR_PROFILE/" title="YOUR_NAME on LinkedIn"><i class="fab fa-linkedin"></i> LinkedIn</a>, <a href="https://www.xing.com/profile/YOUR_PROFILE/cv" title=YOUR_NAME on Xing"><i class="fab fa-xing"></i> Xing</a></p>
In my opinion thatâs a much better approach.
Olaf