
Tagged: nextdoor social icon
-
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 #1340234Hi,
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,
RikardAugust 15, 2025 at 7:04 pm #1488112I tried this same thing but on the functions.php in my child theme it did not like the last line.
I got this:
Your PHP code changes were not applied due to an error on line 35 of file wp-content/themes/ProSouth/functions.php. Please fix and try saving again.
Uncaught Error: Undefined constant “‘avf_social_icons_options’” in wp-content/themes/ProSouth/functions.php:35
Stack trace:
#0 wp-settings.php(695): include()
#1 wp-config.php(100): require_once(‘…’)
#2 wp-load.php(50): require_once(‘…’)
#3 wp-admin/admin.php(35): require_once(‘…’)
#4 wp-admin/theme-editor.php(10): require_once(‘…’)
#5 {main}
thrownAugust 15, 2025 at 7:05 pm #1488113HERE IS THE FULL CONTENT OF THE FILE:
<?php /*
This file is part of a child theme called ProSouth.
Functions in this file will be loaded before the parent theme’s functions.
For more information, please read*/
// this code loads the parent’s stylesheet (leave it in place unless you know what you’re doing)
function your_theme_enqueue_styles() {
$parent_style = ‘parent-style’;
wp_enqueue_style( $parent_style,
get_template_directory_uri() . ‘/style.css’);wp_enqueue_style( ‘child-style’,
get_stylesheet_directory_uri() . ‘/style.css’,
array($parent_style),
wp_get_theme()->get(‘Version’)
);
}add_action(‘wp_enqueue_scripts’, ‘your_theme_enqueue_styles’);
/* Add your own functions below this line.
======================================== */
// 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);August 15, 2025 at 9:13 pm #1488116 -
AuthorPosts
- You must be logged in to reply to this topic.