-
AuthorPosts
-
February 10, 2022 at 4:04 pm #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.
February 11, 2022 at 10:04 am #1340120Hey 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,
IsmaelFebruary 11, 2022 at 3:12 pm #1340168Yes, 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!
February 12, 2022 at 5:48 am #1340234 -
AuthorPosts
- You must be logged in to reply to this topic.