Change WordPress user roles and capabilities Forums Bug Reports Activate Front End Menu Access module not working on my theme

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4178
    dweb360
    Participant

    Hello
    I activate : Activate Front End Menu Access module
    But nothing appear on my menu !

    Thank you for your help

    #4183
    Vladimir
    Keymaster

    Hi,

    This add-on could be not fully compatible with some other plugins or themes which also replace WordPress core Walker_Nav_Menu_Edit class from wp-admin/includes/class-walker-nav-menu-edit.php file. Read this discussion for more details.

    Check if it’s not your case.

    #4841
    dweb360
    Participant

    Hello
    Can you tell how add this workaroun

    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );

    to make user role editor plugin working with my menu

    Please find here the menu files :

    http://succes-voiture.com/menu.rar

    Thank you in advance

    #4843
    Vladimir
    Keymaster

    Hi,

    Edit file edit_mega_menu_walker.php, insert

    
    do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
    

    at the line #467, just after the ‘description’ field paragraph, like this:

    
    <p class="field-move hide-if-no-js description description-wide">
    ...
    </p>
    <?php
      do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
    ?>
    

    I hope it will help. In case of failure, I will need access to a full theme copy, to make own tests.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.