-
Author
-
December 2, 2015 at 17:13 #90641dishycreativeParticipant
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:
- UberMenu 2.x Mega Menus plugin
- Add Descendants As Submenu Items plugin
- Navception plugin
- Suffusion theme
- BeTheme
- Yith Menu
- Kleo Theme
- 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?
December 2, 2015 at 19:13 #90681AbeKeymasterHi, 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.December 4, 2015 at 00:08 #91033dishycreativeParticipantHello 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
December 5, 2015 at 00:03 #91324AbeKeymasterI 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. -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.