Custom Nav Walker Displaying Values in Sub Menu

I’m trying to display Submenu links within a Custom Tailwindcss / Vue component that I added within the Nav Walker. Menu Issues header.php <nav class=”flex items-center justify-between flex-wrap bg-teal-500 p-6″> <div class=”flex items-center flex-shrink-0 text-white mr-6″> <svg class=”fill-current h-8 w-8 mr-2″ width=”54″ height=”54″ viewBox=”0 0 54 54″ xmlns=”http://www.w3.org/2000/svg”><path d=”M13.5 22.1c1.8-7.2 6.3-10.8 13.5-10.8 10.8 0 12.15 … Read more

Sub-Pages only of menu items in current branch using a custom menu

Although I did a thorough research I could not find a solution. Only solutions coming close. My custom menu (“top”) shows this structure (you see a part of it): page 1 subpage 1.1 category A subsubpage 1.1.1 subsubpage 1.1.2 subpage 1.2 category B subsubpage 1.2.1 subsubpage 1.2.2 subpage 1.3 category C subsubpage 1.3.1 subsubpage 1.3.2 … Read more

Handling complex multi-level architecture / menu for large site

I am trying to get feedback and ideas for solving an information architecture / content management problem using wordpress. I have a large site ( 1,000+ pages, hundreds of posts ) made up of sections. Each section needs its own secondary navigation menu that contains both pages and custom links. This is easily done, but … Read more

Programmatically adding menu items function replicates in multiple menus

I have the following code: add_filter( ‘wp_nav_menu_objects’, ‘dynamically_add_shop_categories_to_submenu’ ); function dynamically_add_shop_categories_to_submenu( $items ) { $taxonomy_name = array( ‘shop-category’ ); $args = array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ => true, ‘fields’ => ‘all’, ‘exclude’ => ‘160’, ); $terms = get_terms( $taxonomy_name, $args ); $base=”http://” . $_SERVER[‘HTTP_HOST’] . ‘/businesses/’; $bc=”&shop-category=”; $bt=”?business-type=shops”; foreach ( $terms as … Read more

Arrow down in menu not displaying

I tried to add arrow down when the menu has a sub-menus. But the down arrow not showing up. Please help me. Here’s the link: http://bit.ly/1UH4FlT Currently using this script that I found somewhere. function add_menu_parent_class( $items ) { $parents = array(); foreach ( $items as $item ) { if ( $item->current_page_ancestor && $item-> current_page_ancestor> … Read more

Custom Walker for Walker_Nav_Menu

I’m trying to add a custom menu structure for my WordPress theme. This is how I want it to look: <li> <a href=”https://wordpress.stackexchange.com/questions/239608/link_to_parent_item” class=”main-category” tabindex=”3″>Parent Name</a> <div class=”sub-menu”> <div class=”sub-links pull-left”> <a href=”link_to_child_item”>Child Name1</a> <a href=”link_to_child_item”>Child Name2</a> </div> </div> </li> I’ve written a custom walker to do this, but it is not giving me what … Read more

how to automatically generate hierarchical menus from hierarchy of pages?

I have a photo site, and I take care to crested a logical nested hierarchy of pages. e.g. for photos I just posted, I created the following pages: site.com/2013/ site.com/2013/colorado/ site.com/2013/colorado/crested-butte/ the last of these is the one on which I placed my photos. I want hierarchical menus that are easy to navigate/browse. How do … Read more

how to only add a top-level admin menu without it creating a sub-level-menu

Here is a the code snippet: add_action( ‘admin_menu’, ‘travel_site’ ); function travel_site(){ add_menu_page( ‘Travel Site Menu’, ‘Travel Site’, ‘manage_options’, ‘travel-site-menu’, ‘ts_admin_main_page’ ); add_submenu_page(“travel-site-menu”,”View Travel Requests”,”View Travel Requests”,”manage_options”,”ts-view-travel-requests”,”ts_admin_vtr_page”); } function ts_admin_main_page(){ echo ‘<div class=”wrap”>’; echo ‘<p>Testing main travel site menu page</p>’; echo ‘</div>’; } function ts_admin_vtr_page(){ echo ‘<div class=”wrap”>’; echo ‘<p>Testing view travel requests</p>’; echo ‘</div>’; … Read more