Custom Menu – is_active_menu()
-
Is there a way to figure out whether or not a custom menu has items in it, and if not then echo nothing?
I’ve tried everything I can think of and all I get is blank container
<div>
and<ul>
items.The walker argument of the
wp_nav_menu()
function will specify the output of each menu item but not the container.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Menu – is_active_menu()’ is closed to new replies.