Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1340001

    HI Guys,
    I have followed your instructions to add a custom social media icon to this website: https://ionafiredistrict.com/

    I’ve added to the functions.php file this code (In my Child Theme) per your instructions, and this part DOES WORK, because “Nextdoor” now appears in Theme Options > Social Profiles > and you can see that I have added the Social Profile for Nextdoor Neighbor and it’s link there:

    // Add NextDoor to Social Profiles in Theme Options
    function avia_add_custom_social_icon($icons) {
    $icons[‘Nextdoor’] = ‘Nextdoor’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    But, it is not appearing in the top bar: should appear to the right of the Youtubr Icon. I have added your custom CSS as well, as follows, but it still does not appear (interestingly, when I used your Kriesi glyph example, a white pencil did appear). This is the CSS I added – I don’t know what is supposed to be in ‘content ” ” ‘ – I tried adding the image there too, but that didn’t work.

    #top #wrap_all .av-social-link-Nextdoor a:before{
    content: “”;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    background: url(https://ionafiredistrict.com/wp-content/uploads/2022/02/NDN-Icon.png) no-repeat center center;
    background-size: contain;
    }

    Thank you for your help.

    #1340120

    Hey Eleina_Shinn,

    Thank you for the inquiry.

    Did you select or add the new social icon in the Enfold > Social Profiles panel? The filter above will just create an option for the social icon but it will not add it automatically in the list. You have to add a new entry in the social settings panel and select the new icon.

    Best regards,
    Ismael

    #1340168

    Yes, I had, but when I went back in this morning, it had reverted back to the parent theme instead of the child (I had done everything within the child theme); so that must have been the problem, and I didn’t realize it, now it’s working. So sorry and thank you; hate bothering you guys unnecessarily!

    #1340234

    Hi,

    Great, I’m glad that you got things working, and thanks for the update. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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