Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #934928

    Hi! I know this topic has been covered in the past, but I couldn’t find one that was recent/relevant.

    I am trying to add a custom social media icon to my theme (specifically Goodreads), but I’m struggling to figure out how to do it. I have the icon saved to my media library, but beyond that, I’m stuck.

    Thanks in advance!

    #934964

    documentation is here: https://kriesi.at/documentation/enfold/custom-social-icons/

    if you do not have a font icon of your “social-icon” you can use png files for that.

    1 look for a png file you like to have
    f.e.:

    2 : upload it to your media library and copy the link – you will need it:

    3 : now go to your functions.php of your child-theme and enter:
    that little goodreads will be the addendum to the class set by enfold

    function avia_add_custom_social_icon($icons) {
        $icons['Goodreads'] = 'goodreads';
        return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    with that you can now choose the new social icon on Enfold Options – Social Profiles ( it is at the end of the list)

    4 : This comes to quick css ( you see here is the automatically created class av-social-link-goodreads )

    #top #wrap_all .av-social-link-goodreads a:before{
        content: "";
        width: 20px;
        height: 20px;
        display: inline-block;
        vertical-align: middle;
        background: url(https://link-to-your-image/goodreads.png) no-repeat center center;
        background-size: contain;
    }

    5 : styling the hover effect – this to quick css ( color makes no sense here because we have no font )

    #top #wrap_all .av-social-link-goodreads:hover a{
        color:#fff; 
        background-color:#9fae37; 
    }

    6 : for another “social-icon” you only have to replace goodreads

    #935231

    Hi,

    Thank @Guenni007 for sharing the tip :)

    Do let us know if you have any questions we are happy to help.

    Best regards,
    Vinay

    #986478

    This is quite a delayed response, but everything worked beautifully. Thank you so much!

    #986773

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1269193

    Is there an easier option to do this? I am not familiar with number 4 in the list above…

    #1269438

    Hi MyGirlFriday805,

    Could you try to explain the problem you are having a bit further please? What do you not understand exactly, or what are you having problems with?

    Best regards,
    Rikard

    #1269441

    I just wanted the Goodreads icon available for my social profiles on enfold theme for

    #1269651

    Hi MyGirlFriday805,

    Those are the steps that need to be taken and #4 is just adding that css to the Quick css in the Theme options.

    Best regards,
    Victoria

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.