Avada Theme disabled roles editing
-
I use Avada Theme Version 3.8.6 with Power Menus plugin. In Admin you do not get the roles per menu. This is caused by wrong parameters in power-menus.php.
/* Actions */ add_action('wp_update_nav_menu_item', 'power_menus_custom_nav_update', 10, 3); add_action('admin_init', 'power_menus_secure_page_meta_box'); add_action('init', 'power_menus_output_buffer', 0); //add_action('admin_enqueue_scripts', 'power_menus_admin_enqueue_scripts'); /* Filters */ add_filter('wp_edit_nav_menu_walker', 'power_menus_nav_walker', 10, 2); add_filter('wp_setup_nav_menu_item', 'power_menus_custom_nav_item'); add_filter('wp_nav_menu_objects', 'power_menus_main_navigation_links', 10, 2); /* Avada Support Suggestions */ add_action('wp_update_nav_menu_item', 'power_menus_custom_nav_update', 30, 5); add_action('admin_init', 'power_menus_secure_page_meta_box'); add_action('init', 'power_menus_output_buffer', 0); //add_action('admin_enqueue_scripts', 'power_menus_admin_enqueue_scripts'); /* Filters */ add_filter('wp_edit_nav_menu_walker', 'power_menus_nav_walker', 30, 5); add_filter('wp_setup_nav_menu_item', 'power_menus_custom_nav_item'); add_filter('wp_nav_menu_objects', 'power_menus_main_navigation_links', 30, 5);
Remarks from Avada:
Notice the numbers are 30, 5. This is higher than previously set, which means the plugin takes priority over the theme for menu item options.WordPress has a limitation on the number of options added to the menus. So it cannot have both from the theme and from the plugin.
- The topic ‘Avada Theme disabled roles editing’ is closed to new replies.