-
AuthorPosts
-
April 26, 2022 at 3:19 pm #1349541
Hi,
the list of Social Media Elements/Profiles is not complete.
How do i add a missing one?
(one actual example would be Mastodon as an alternative to Twitter)kind regards
elviraApril 27, 2022 at 6:00 am #1349604Hey Elvira,
It’s possible, please read further on our documentation: https://kriesi.at/documentation/enfold/social-share-buttons/#how-to-add-custom-social-icons-to-enfold-options
Best regards,
NikkoMay 4, 2022 at 10:42 pm #1350534I added it into the functions.php.
It gives a new option to choose from.
I see the link exists
It does NOT provide a new icon – the link is there but invisibleplease explain better!
ElviraMay 5, 2022 at 4:43 am #1350545Hi Elvira,
I apologize for that.
The mastodon logo is not available in fontello, so you’ll have to add this code in functions.php (in the documentation it is under Using images or non-Fontello icons)function avia_add_custom_social_icon($icons) { $icons['Mastodon'] = 'mastodon'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Then go to Enfold > General Styling > Quick CSS and add this CSS code (in the documentation this is under In case of using an image)
#top #wrap_all .av-social-link-mastodon a:before{ content: ""; width: 20px; height: 20px; display: inline-block; vertical-align: middle; background: url(https://website.com/wp-content/uploads/2022/05/mastodon.png) no-repeat center center; background-size: contain; }
Finally replace this URL in the code http://website.com/wp-content/uploads/2022/05/mastodon.png with the correct URL pointing to your mastodon logo image.
I hope this helps.Best regards,
NikkoMay 5, 2022 at 3:26 pm #1350632I have already incorporated Mastodon social media icon on the KLIMA° vor acht homepage 3 times (in the middle of the page and in header & socket on every page) following your instructions above. So thanks for that!
It is worth to add that you very likely need different versions of the SocialMedia icon b/c of different colors. I’ve used 3 SVG files.
Also you might need to play around with icon size (height, width of a::before) and adjust positioning. For the latter, play a bit with margin-top/margin-bottom of the parent li element or the anchor element itself.Btw.: the color of the Mastodon icon is #2b90d9.
Best,
JürgenMay 5, 2022 at 5:26 pm #1350652Hi Jürgen,
Thanks for sharing your experience, it’s much appreciated :-)
Best regards,
RikardMay 5, 2022 at 10:05 pm #1350678@Jürgen
Thanks
kind regards
Elvira@Nikki
“thanks” for wasting my time by leading me into the wrong direction.
I would prefer if that wont happen so often.May 6, 2022 at 1:41 am #1350699Hi Elvira,
I apologize if I have caused any inconvenience however the answer I gave you is pointing in the right direction but would require some time, although it’s easy to follow but would require you to tweak some of it. That’s why my next response was to give you the specific codes for mastodon. :)
Anyway, thanks for using Enfold, and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Social Media Profiles – how to add another?’ is closed to new replies.