Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #36113
    Aaron
    Guest

    I’m working on https://www.kristenbendheimyoga.com and in the navigation menu, I’m trying to add a link after Client Testimonials titled “Free Videos” which links to a YouTube page. But when I add it, WordPress is automatically changing the words to the circle YouTube icon. I JUST want the menu label to show the words “Free Videos” like the rest of the navigation labels, NOT the icon.

    Note: This is the PRIMARY menu (not the social media menu) and it’s in the BELOW HEADER POSITION. I tried it in the primary position to see if that made a difference but it doesn’t.

    Any help please?

    #36139
    Jesse Owens
    Keymaster

    Hi Aaron-

    Thanks for reaching out, and thanks for using the Venetian WordPress theme.

    You can accomplish this by using a WordPress filter to change which links will be turned into an icon. If you’re not creating a Child Theme for Venetian, I recommend using a free plugin like Code Snippets to accomplish this.

    Here’s a simple example of a code snippet you can use to completely disable YouTube links from being changed into icons:

    function bgsc_remove_social_icon($networks){
        unset($networks['youtube.com']);
        return $networks;
    }
    add_filter('boldgrid_social_icon_networks' , 'bgsc_remove_social_icon');
    

    I noticed, however, that you have two YouTube links in your menu. I’m not entirely certain how you created the smaller icon, it doesn’t look like that’s being provided by the theme itself. If the above snippet removes both of the icons, you can try making the search term more specific.

    For your specific case, the link you don’t want to be an icon has youtube.com/channel in the URL, and the one you do want to be an icon has youtube.com/watch in the URL. For that specific case, you could use a snippet like this:

    function bgsc_remove_social_icon($networks){
        $networks['youtube.com/watch'] = $networks['youtube.com']; 
        unset($networks['youtube.com']);
        return $networks;
    }
    add_filter('boldgrid_social_icon_networks' , 'bgsc_remove_social_icon');
    
    #36154
    Aaron
    Guest

    PERFECT. You’re a lifesaver, thanks!

    Aaron

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to STOP primary menu from automatically changing links to icons?’ is closed to new replies.