Tagged: Social Media Icons
- AuthorPosts
- April 15, 2021 at 1:23 pm #36113AaronGuest
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?
April 15, 2021 at 1:37 pm #36139Jesse OwensKeymasterHi 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 hasyoutube.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');
April 15, 2021 at 6:12 pm #36154AaronGuestPERFECT. You’re a lifesaver, thanks!
Aaron
- AuthorPosts
- The topic ‘How to STOP primary menu from automatically changing links to icons?’ is closed to new replies.