Title: Menu items invisible
Last modified: April 9, 2020

---

# Menu items invisible

 *  Resolved [Rappi](https://wordpress.org/support/users/rappi/)
 * (@rappi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/menu-items-invisible-2/)
 * Hello,
    I work with the Extra Theme and there I have no access to the user roles.
   Therefore I installed the plugin “Nav Menu Roles Toggle” from Github. Until recently
   everything worked fine too. When I enabled “Nav Menu Roles Toggle” I could select
   the user roles. Since a couple of days, however, I don’t see any menu items when
   the plugin is enabled. Now I wanted to use workaround #1 from the FAQ, but unfortunately
   I don’t know where to insert this code
 *     ```
       <?php 
       // Place this in your admin nav menu Walker
       do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
       // end added section 
       ?>
       ```
   
 * Can someone please explain to me where I have to insert this so that I can edit
   menus again?
    Thanks Rappi

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/menu-items-invisible-2/#post-12652400)
 * Rappi,
 * I haven’t updated the docs yet, but as of WordPress 5.4 that hook is now in WordPress
   core and I no longer replace the Admin Menu Walker… however, it’s highly likely
   that your theme is doing so. (possible another plugin too)
 * Can you test what happens if you switch to Twenty Twenty? If that resolves it
   please ask your theme to make their Walker 5.4 compatible… ideally they shouldn’t
   need to replace the Walker at all now that the hook is in core.
 * If you absolutely need to edit the theme yourself please refer to this section
   [https://wordpress.org/plugins/nav-menu-roles/#instructions%20for%20patching%20your%20plugin%2Ftheme](https://wordpress.org/plugins/nav-menu-roles/#instructions%20for%20patching%20your%20plugin%2Ftheme)
   which explains where to look. It’s impossible to predict exactly where this goes
   is as every theme is different.
 * -kathy
 *  Thread Starter [Rappi](https://wordpress.org/support/users/rappi/)
 * (@rappi)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/menu-items-invisible-2/#post-12652438)
 * Thanks for the fast answer.
 * I have found the solution.
 * I have insert the code in Extra\includes\core.php
 *     ```
       function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
   
   
       // Add this directly after the description paragraph in the start_el() method
       do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
       // end added section 
   
       			if ( !empty( $item->mega_menu ) ) {
       ```
   
 * Now it works for me.
 * I hope this help other people with Extra-theme.
 * Rappi
 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/menu-items-invisible-2/#post-12652472)
 * Oh nice! But please contact the Extra theme team. They should try to update their
   theme for WordPress 5.4 to use the hook themselves instead of overriding the 
   Walker.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Menu items invisible’ is closed to new replies.

 * ![](https://ps.w.org/nav-menu-roles/assets/icon-256x256.png?rev=2336319)
 * [Nav Menu Roles](https://wordpress.org/plugins/nav-menu-roles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nav-menu-roles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nav-menu-roles/)
 * [Active Topics](https://wordpress.org/support/plugin/nav-menu-roles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nav-menu-roles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nav-menu-roles/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/menu-items-invisible-2/#post-12652472)
 * Status: resolved