Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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
    elvira

    #1349604

    Hey 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,
    Nikko

    #1350534

    I 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 invisible

    please explain better!
    Elvira

    #1350545

    Hi 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,
    Nikko

    #1350632

    I 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ürgen

    #1350652

    Hi Jürgen,

    Thanks for sharing your experience, it’s much appreciated :-)

    Best regards,
    Rikard

    #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.

    #1350699

    Hi 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

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Social Media Profiles – how to add another?’ is closed to new replies.