Create a menu item with a blank label
-
I created a custom selection field in the menu items to select a font awesome icon which is added before the label. The coding works great except for one small issue. If you want to create a menu item say a home link with only an icon and leave the label blank it deletes the menu item upon update.
I am looking for a way to modify the update menu function to prevent the deletion of the item containing a blank label. This would have to be a function that could reside within the functions.php file as it will be built into our premium theme.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Create a menu item with a blank label’ is closed to new replies.