September 12, 2017 at 7:23 am
Hello! I seem to be having an odd issue with adding classes to my menu items – any class gets added as an icon, instead of adding it to the li. For example, I added site-title as a class but it shows up as
<li class="menu-sitemap current-menu-item current_page_item menu-item-6881"><a href="/sitemap/"><i class="site-title"></i><span>Sitemap</span></a></li>
It should show up as
<li class="site-title menu-sitemap current-menu-item current_page_item menu-item-6881"><a href="/sitemap/">Sitemap</a></li>
Furthermore, if I try to use multiple classes, it will only display the last class. So adding icon-facebook site-title shows up as
<li class="menu-sitemap current-menu-item current_page_item menu-item-6881"><a href="/sitemap/"><i class="site-title"></i><span>Sitemap</span></a></li>
I tested my setup by switching back to a default WP theme and menu class is added to the li as expected. In older versions of Virtue, it would add the classes to the li and then a :before for the icons but that seems to have changed. How can I add a class to the menu item? Thank you.