I want to add the font awesome iconfont to my menu list items, so I need to make a custom Walker.
Because the font per menu item will be different I was hoping to use the css class in the WP backend to add the name of the icon and then output that css class within the output of the walker.
Example how it should become:
$item_output .= '<a'. $attributes .'><i class="icon-' . [output css class WP backend] . '"></i>';
Does anyone know how to filter the CSS class to be able to add it to the custom walker?
Thanks and Merry Xmas!
li
CSS classes to address the items?li::after{content:"!";font-family:icon}
No need for PHP.