Hello,
I’m currently using this guide: https://www.advancedcustomfields.com/resources/adding-fields-menu-items/ to add menu icons to my site navigation. It is working as expected, however, I would like the <i class=”fa fa-‘.$icon.'”></i> to be before the $item->title instead of after (prepend vs append) and I’m lost on how to achieve this. Any ideas / help would be greatly appreciated.
Thanks!
something like this would probably do it
$item->title = '<i class="fa fa-'.$icon.'"></i> '.$item->title;
Thanks, John. This worked perfect.
Hey John, just wanted to say THANKS for your always helpful posts. Throughout the years your answers on this forum have helped me countless times!