This topic has 3 replies, 2 voices, and was last updated 8 years by Abe.

  • Author
  • #90641
     dishycreative
    Participant

    Hello!

    I am using Kleo on two different client sites and we need Nav Menu Roles for each of them. I know this has been an issue for a while. I just saw this:

     

    I don’t see the Nav Menu Roles options in the admin menu items?

    This is because you have another plugin (or theme) that is also trying to alter the same code that creates the Menu section in the admin.

    WordPress does not have sufficient hooks in this area of the admin and until they do plugins are forced to replace everything via custom admin menu Walker, of which there can be only one. There’s a trac ticket for this, but it has been around a while.

    A non-exhaustive list of known conflicts:

    1. UberMenu 2.x Mega Menus plugin
    2. Add Descendants As Submenu Items plugin
    3. Navception plugin
    4. Suffusion theme
    5. BeTheme
    6. Yith Menu
    7. Kleo Theme
    8. Jupiter Theme

    Workaround #1

    Shazdeh had the genius idea to not wait for a core hook and simply add the hook ourselves. If all plugin and theme authors use the same hook, we can make our plugins play together.

    Therefore, as of version 1.6 I am modifying my admin nav menu Walker to only adding the following lines (right after the description input):

    COPY 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 
    ?>

    Ask your conflicting plugin/theme’s author to add this code to his plugin or theme and our plugins will become compatible.

     

    Will this be added to the next update of the Kleo theme? Or should I pay my developer to get this fix done?

    #90681
     Abe
    Keymaster

    Hi, where are you getting that list with Kleo in it since out theme works with Nav Menu Roles plugin?

    Kleo includes the compatibility, See the screenshot with Kleo menu page

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    Attachments:
    You must be logged in to view attached files.
    #91033
     dishycreative
    Participant

    Hello Abe,

    Nav Roles works, but pages utilizing just come up blank. I can see the settings to add to those pages. Here is the link: https://wordpress.org/plugins/nav-menu-roles/faq/#conflict

    #91324
     Abe
    Keymaster

    I don’t think that is related to our theme… or the plugin.
    I just tested and it totally works.

    The plugin just modifies the menu and it should not affect anything else

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

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

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?