Support » Plugin: Menu Icons by ThemeIsle » envelope icon

  • Resolved joneiseman

    (@joneiseman)


    I don’t know if this problem is related to the fact that I can’t select any icons using WordPress 5.3 (https://wordpress.org/support/topic/unable-to-select-icon-after-upgrading-wp-to-5-3/), since I also see that problem. But I also see a problem that when I create a custom link for a menu item with mailto:myname@mydomain.com it puts an envelope icon without any menu label (even though I didn’t select any icon to be displayed for the menu item). It’s putting the “fa-hidden” class in the html for the menu label to hide the menu text.

Viewing 1 replies (of 1 total)
  • Looks like there is a filter I can use to solve this problem: storm_social_icons_networks.
    The filter takes an array as input and I just need to remove the entry in the array with the “mailto:” key and then return the result.

    add_filter( 'storm_social_icons_networks', 'my_social_networks' );
    function my_social_networks($arr)
    {
        unset($arr['mailto:'];
        return $arr;
    }

    If I want to leave the icon but not hide the text, I can instead add the following:

    add_filter ( 'storm_social_icons_hide_text', '__return_false' );

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.