hi there,
i would like to add entypo icons to menu entries in the main menu and in the footer. If I just add the code like “
Hey elbnetz!
Can you please elaborate? I think your post is incomplete. A screenshot of what you’re trying to accomplish will help.
Best regards,
Ismael
Hey!
Did you try to use the icon shortcode instead of the html code? You can use the default editor and the “Magic wand” tool to generate the shortcode. Then copy/paste it into the menu title field or any other text field.
Cheers!
Peter
Yes, it works in the Main menu (how get I rid gof the animation?)
But not with an individual menu widget in the footer. here the shortcode is shown, not the icon. Or did I do something wrong? Can yo copy me a code?
Thanks
Hey!
No, probably the menu widget doesn’t support shortcodes. You can try to use following code to execute the shortcodes – insert it at the bottom of functions.php
add_filter( 'wp_nav_menu_items', 'avia_do_shortcode_nav_widget', 10, 2 );
function avia_do_shortcode_nav_widget($items, $args)
{
$items = do_shortcode($items);
return $items;
}
Regards,
Peter