Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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, 4 months ago by Josue.
    #301882

    Hey Adrien!

    Have you actually tried the “Nav Menu Roles” plugin with Enfold? the theme uses the normal WordPress menu functionality.

    Cheers!
    Josue

    #302465

    Hi 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

    #302851

    Hi!

    You can use: http://wordpress.org/plugins/nav-menu-roles/

    Regards,
    Devin

    #302867

    Hey!

    I tested that fix (functions.php:54) on my local install and it worked:
    http://screencast.com/t/vp7LnkQv1

    Regards,
    Josue

    #302878

    Hi 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, 4 months ago by mayorninja.
    #302898

    Hey!

    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

    #302900

    And for your solution without plugin Mayorninja, I didn’t understand how to do it..

    TY

    #302904

    Hey 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!
    Josue

    #302912

    Hi 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 out add_theme_support('avia_mega_menu');, and the line in class-megamenu.php also becomes unnecessary.

    #302927

    Re,

    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

    #302936

    You are welcome Adrien, glad we could help :)

    Regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Disable Enfold menu’ is closed to new replies.