[Django]-How to reorder Wagtail admin menu items

3👍

You can use the construct_main_menu hook to modify existing menu items.

For example, to move the Pages item to the bottom, place this code in a wagtail_hooks.py file within one of your apps:

from wagtail import hooks

@hooks.register('construct_main_menu')
def reorder_menu_items(request, menu_items):
    for item in menu_items:
        if item.name == 'explorer':  # internal name for the Pages menu item
            item.order = 100000
            break
👤gasman

Leave a comment