Support » Plugin: Nav Menu Roles » Nav Menu Role Screen Options Not Appearing

  • Resolved dougekeith

    (@dougekeith)


    Hi, I am not seeing any see any updated screen options under the “Appearance” / “Menu” page with the Nav Menu Roles plugin.

    This is what I have done:

    – Installed and activated the “Nav-Menu-Roles” plugin
    – Read the FAQ and all relevant support and GitHub question I could find.
    – Performed the recommended code modifications
    – De-installed any plugin related to menus or permissions.

    Is there anything else I can try? Thanks much! And thanks for creating this plug-in!

    The two things I note:
    -there are two files which met the criteria to be modified instead of just one as explained in the FAQ (see below)
    – Neither file is found under a “theme” specific directory.

    Details:
    -MH Corporate WordPress Theme. Is this a default theme?
    – WordPress Version 5.2

    Files modified:
    – /home/tuesobyn/public_html/wp-content/plugins/nav-menu-roles/inc/class.Walker_Nav_Menu_Edit_Roles_4.5.php

    -/home/tuesobyn/public_html/wp-content/plugins/nav-menu-roles/inc/class.Walker_Nav_Menu_Edit_Roles.php

    Code for both files was modified as below as per FAQ for patching:

    <p class=”field-description description description-wide”>
    <label for=”edit-menu-item-description-<?php echo $item_id; ?>”>
    <?php _e( ‘Description’ , ‘nav-menu-roles’ ); ?><br />
    <textarea id=”edit-menu-item-description-<?php echo $item_id; ?>” class=”widefat edit-menu-item-description” rows=”3″ cols=”20″ name=”menu-item-description[<?php echo $item_id; ?>]”><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
    <span class=”description”><?php _e(‘The description will be displayed in the menu if the current theme supports it.’, ‘nav-menu-roles’ ); ?></span>
    </label>
    </p>

    <?php
    // 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
    ?>
    Thanks for any assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author helgatheviking

    (@helgatheviking)

    Hi @dougekeith, thanks for trying to debug your issue. Have you tried switching to Twenty Seventeen or Twenty Nineteen? Those are considered default themes, aka the themes that come with WordPress. If you’ve tried disabling all plugins already, it is almost assuredly a conflict with your theme.

    – Neither file is found under a “theme” specific directory.

    You aren’t meant to modify the plugin files, that’s how you are supposed to modify a conflicting theme. Please undo whatever changes you may have made to the plugin. Unfortunately, I can’t tell you how the theme may be modifying the Walker or where that file may be as it’s different in all themes. You may need to ask the theme author.

    I hope that helps.

    dougekeith

    (@dougekeith)

    Thank you much Helga the Viking! I switched from the MH Corporate Basic theme to the the Twenty-Nineteen theme, and then deactivated and reloaded Nav Menu Role. And it worked. No code insertion needed.

    I then changed the theme back to the MH Corporate basic theme and it still worked. Net-net I can’t tell what the root cause problem was but your advice on trying a different theme certainly helped and everything works fine.

    Plugin Author helgatheviking

    (@helgatheviking)

    @dougekeith, great that resolved it! I wonder if your theme was modifying the Walker and disabling somehow gave priority to NMR. Whatever it was, we’ll take it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nav Menu Role Screen Options Not Appearing’ is closed to new replies.