Title: theme hack works &#8211; partially
Last modified: August 31, 2016

---

# theme hack works – partially

 *  Resolved [nikdow](https://wordpress.org/support/users/nikdow/)
 * (@nikdow)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/theme-hack-works-partially/)
 * My problem was the theme iMedica (you can add that to your list of incompatible
   themes).
    I added `do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item,
   $depth, $args );` to the `start_el` function in `class FW_Admin_Menu_Walker extends
   Walker_Nav_Menu` in file `/wp-content/plugins/imedica-core/framework/extensions/
   megamenu/includes/class-fw-admin-menu-walker.php` and now I can see some, but
   not all of the nav-menu-roles options. I get this much: Display Mode Logged In
   Users Logged Out Users Everyone but I don’t get the checkboxes for the roles.
 * Is there some other reason why nav-menu-roles wouldn’t be showing the roles to
   select? Or is this theme’s plugin just too gnarly?
 * And yes I will be contacting the theme author, in the meantime, trying to make
   it work.
 * [https://wordpress.org/plugins/nav-menu-roles/](https://wordpress.org/plugins/nav-menu-roles/)

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

 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/theme-hack-works-partially/#post-7191490)
 * The checkboxes only appear if you’ve selected “Logged In Users”. So NMR’s javascript
   has to have loaded (`nav-menu-roles.js` or `nav-menu-roles.min.js` depending 
   on whether you have `SCRIPT_DEBUG` defined). Check the page source to be sure
   it has loaded, and additionally check your dev tools console for script errors.
 *  Thread Starter [nikdow](https://wordpress.org/support/users/nikdow/)
 * (@nikdow)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/theme-hack-works-partially/#post-7191493)
 * Thanks for clearing up my elementary error, working well now.
 * Now I just have to get that plugin author to toe the line, as I have my plugins
   on auto-update, but from your “plan B” I gather the option once set up will still
   work even if the errant plugin updates.
 * Thanks for a great plugin.
 *  Plugin Author [HelgaTheViking](https://wordpress.org/support/users/helgatheviking/)
 * (@helgatheviking)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/theme-hack-works-partially/#post-7191506)
 * Good luck. It’s a *very* easy fix for the theme author, especially if you send
   them the patched file. Hopefully it works out. Yes, plan B will work even if 
   the theme updates and breaks your patch. There actually is some movement on the
   core trac issues holding this up, so we might actually see this resolved at the
   core level eventually.
 * Glad you dig NMR!
 *  [sfxfreak](https://wordpress.org/support/users/sfxfreak/)
 * (@sfxfreak)
 * [10 years ago](https://wordpress.org/support/topic/theme-hack-works-partially/#post-7191725)
 * Hi,
 * [@nikdow](https://wordpress.org/support/users/nikdow/) – did you get any response
   from BrainstormForce?
    I was just hit with the same problem, but in a different
   file and no matter what I try to do – I can’t get my web site to work again.
 * Thanks.

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

The topic ‘theme hack works – partially’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [sfxfreak](https://wordpress.org/support/users/sfxfreak/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/theme-hack-works-partially/#post-7191725)
 * Status: resolved