bherrero
8/7/2015 - 2:54 PM

Add class to a link item inside a menu

Add class to a link item inside a menu

function add_menuclass($ulclass) {
   return preg_replace('/<a /', '<a class="list-group-item"', $ulclass);
}
add_filter('wp_nav_menu','add_menuclass');