-
AuthorPosts
-
August 8, 2014 at 1:27 pm #301617
Hi!
I opened a topic here about hiding pages.
I found maybe a solution, that would be to change the menu if the visitor is login or not. For that, I would like to try this plugin. The problem is I don’t think this plugin is compatible with your menu. So I would like to disable your menu to move to the normal wordpress menu and try it.
How can I do it?
Thanks!
Adrien
- This topic was modified 10 years, 3 months ago by Josue.
August 9, 2014 at 3:55 am #301882Hey Adrien!
Have you actually tried the “Nav Menu Roles” plugin with Enfold? the theme uses the normal WordPress menu functionality.
Cheers!
JosueAugust 11, 2014 at 11:04 am #302465Hi Josue!
Yes I tried it and not working. I found this http://wpdevplus.com/fix-nav-menu-roles-plugin-doesnt-show-themeforest-enfold-theme/ on internet and tried it and style nothing..
:(
Thanks
August 11, 2014 at 8:25 pm #302851August 11, 2014 at 8:56 pm #302867Hey!
I tested that fix (functions.php:54) on my local install and it worked:
http://screencast.com/t/vp7LnkQv1Regards,
JosueAugust 11, 2014 at 9:36 pm #302878Hi guys,
Nav Menu Roles does not yet work with the public version Enfold. I know because I am pretty sure I’m the guy who helped get support for it (and a few other menu plugins) in the upcoming version. I am guessing staff dev versions are a little ahead of the public version here.
It is easy enough to add this code to line 510 or so of class-megamenu.php until the release:
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
But, actually, I’m surprised everyone forgot about
add_theme_support( 'avia_conditionals_for_mega_menu' );
;) That should solve it without a plugin.- This reply was modified 10 years, 3 months ago by mayorninja.
August 11, 2014 at 11:06 pm #302898Hey!
Thanks for your help! Mayorninja’s right, just the modification of the functions.php is not enought. I added the line in class-megamenu.php and now is good, i can configure my menu. But now I have a new problem, the enfold configuration in the widget area disappeared..
http://21heures.fr/widget%20area.jpg
Thanks again!
Adrien
August 11, 2014 at 11:08 pm #302900And for your solution without plugin Mayorninja, I didn’t understand how to do it..
TY
August 11, 2014 at 11:12 pm #302904Hey Adrien!
add_theme_support( 'avia_conditionals_for_mega_menu' );
Is a native Enfold feature that let you insert conditionals for menu items, it will put something like this:
Cheers!
JosueAugust 11, 2014 at 11:50 pm #302912Hi again,
I’m sorry that got rid of the Enfold custom widget area creator. I’m not sure how that is possible, and it works fine in my own version of Enfold. I guess you will have to just wait for the official release.
To add to what Josue has said, what is shown in his screenshot will appear if you put
add_theme_support( 'avia_conditionals_for_mega_menu' );
in functions.php (or better yet, your child theme’s functions.php). I was deliberately vague about it in case the support staff thought the Nav Menu Roles plugin was the better way to go, but that’s how you do it. I believe it will only work if you have not also commented outadd_theme_support('avia_mega_menu');
, and the line in class-megamenu.php also becomes unnecessary.August 12, 2014 at 2:05 am #302927Re,
I found my problem.. I don’t know how I did that but I change a line in the functions… I use 2 times add_theme_support(‘avia_mega_menu’);
Thanks for your help, Josue, Mayorninja and Devin!
So, if somebody need to do it before the Enfold update, I just added the line in class-megamenu.php.
Thanks again, you’re very nice!
Adrien
August 12, 2014 at 2:36 am #302936You are welcome Adrien, glad we could help :)
Regards,
Josue -
AuthorPosts
- The topic ‘Disable Enfold menu’ is closed to new replies.