Viewing 7 posts - 1 through 7 (of 7 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

    #1488112

    I 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}
    thrown

    #1488113

    HERE 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);

    #1488116

    Hi,
    Please unblock us & everyone:
    Screen Shot 2025 08 15 at 3.10.05 PM

    Best regards,
    Mike

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