Tag Info

Hot answers tagged

2

As i got the solution so i am posting it here. Wordpress uses current-menu-ancestor and current_page_ancestor classes. So we can use them as below .mainmenu .current_page_item > a, .mainmenu .current_page_ancestor > a, .mainmenu .current-menu-item > a, .mainmenu .current-menu-ancestor > a { font-style: italic; }


1

change this line: $item_output .= $args->link_before . apply_filters('the_title', $item->title, $item->ID) . $args->link_after; to: $item_output .= $args->link_before . apply_filters('the_title', substr($item->title, 0, 10), $item->ID) . $args->link_after; That limits the character to 10. Please note this substr($item->title, ...



Only top voted, non community-wiki answers of a minimum length are eligible