-
Author
-
June 22, 2014 at 22:02 #20454amineParticipant
Hello
I have install plugging nav-menu-roles to have control on the menu navigation for different user role http://wordpress.org/plugins/nav-menu-roles/.
however I am getting the following error
Nav Menu Roles has detected a conflict with the following functions or classes: kleo_custom_menu. Please see the FAQ for more information.
I look forward for your help.
Thank you
June 24, 2014 at 13:57 #20677AbeKeymasterHi, yes we used some customizations to the default menu settings for the Mega menu option. If you want to disable add this code in your child theme functions.php
COPY CODEadd_action('after_setup_theme', 'kleo_remove_mega_menu', 11); function kleo_remove_mega_menu() { remove_theme_support( 'kleo-mega-menu' ); }
Also until 1.5.1 version replace these two file contents with the ones attached:
– wp-content/themes/kleo/functions.php
– wp-content/themes/kleo/lib/theme-functions.phpHi 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.June 25, 2014 at 00:50 #20808marceldennisxpParticipantFor the next update can you make this plugin work with your kleo mega menu? I also have this plugin installed which is giving me the same error and would love to be able to show menu items by user role.
June 26, 2014 at 01:14 #20935AbeKeymasterWe will take a look at it. Right now KLEO is compatible with https://wordpress.org/plugins/menu-items-visibility-control/
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.June 26, 2014 at 03:16 #20946marceldennisxpParticipantGreat! Thanks for the suggestion but I will wait for the nav menu plugin compatibility since it’s easier and has more menu functions.
July 2, 2014 at 14:47 #21509PatagoniaParticipantIt seems they changed it to have both plugins work together, see
http://wordpress.org/support/topic/does-this-work-with-nav-menu-roles-plugin?replies=13Do they both work now with Kleo? Might need to test the dev version from github.
Cheers
July 2, 2014 at 14:56 #21510PatagoniaParticipantSee also the updated faq: http://wordpress.org/plugins/nav-menu-roles/faq/
KLeo team, it states:Workaround #1
Shazdeh, the author of Menu Item Visibility Control plugin 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 walker to only adding the following line (right after the description input):
COPY CODE<?php // This is the added section do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args ); // end added section ?>
I am then adding my fields to this hook. Ask your conflicting plugin/theme’s author to do the same and our plugins should become compatible.
So some work on your side might be needed.
July 2, 2014 at 17:30 #21552marceldennisxpParticipant@patagonia I have the 1.6 version and yes you are correct that the author has to make adjustments on his end for the nav menu plugin to work with the mega menu. Right now I still get an conflicting error unless I disable the mega menu which I don’t really want to. On the other hand the nav menu role plugin would solve tons of users issues with redirects…menu visibility both desktop & mobile etc… This is a very simple but powerful plugin that needs to be compatible with this theme.
July 3, 2014 at 16:51 #21655AbeKeymasterHi there, we added an action like @patagonia suggested here http://wordpress.org/plugins/nav-menu-roles/faq/ and seems to work.
Please replace the contents of this file until the next update with the content from the the one attached to fix it.
wp-content/themes/kleo/lib/menu-custom.php
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.July 10, 2014 at 10:40 #22199AbeKeymasterSuper. Thanks for your feedback
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.July 23, 2014 at 22:36 #23380jwgarrettParticipantIt works for everything except custom menu types. Can you get it to work for the custom menu types as well?
Attachments:
You must be logged in to view attached files.July 24, 2014 at 01:25 #23393AbeKeymasterTry with v1.6.1 coming tomorrow and see how it goes
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.July 24, 2014 at 15:53 #23450KieranParticipantHi,
Can I just confirm exactly what I should put into the child theme functions to get nav menu roles to work?
Thanks.
July 24, 2014 at 20:59 #23544jwgarrettParticipantI have installed 1.6, but still having the same issue. How did you sort it out Kieran?
July 24, 2014 at 21:15 #23546KieranParticipantThis https://archived.seventhqueen.com/forums/topic/conflict-with-the-following-functions-or-classes-kleo_custom_menu/#post-20677 added to theme functions in child theme worked a treat for me.
Either by logged in, logged out or role
July 24, 2014 at 23:33 #23554AbeKeymasterin 1.6 the nav-menu-roles plugin should work without code intervention since the change given by me to menu-custom.php it is included in the update
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 topic ‘Conflict with the following functions or classes: kleo_custom_menu’ is closed to new replies.