Tag Info

New answers tagged


You can wrap menu link texts in html tags, in example Menu <span>Item</span>. Now you can create line break with CSS. .nav span { display: block; }


Calculation you talking about going here: if( !isset( $this->break_point ) ) $this->break_point = ceil( $this->current_menu->count / 2 ) + 1; You can't get top-level items count this way. Instead you should count it yourself. You can do this using wp_get_nav_menu_items(). Every top-level item should have menu_item_parent set to '0'. ...

Top 50 recent answers are included