[Fixed]-Custom Django Wagtailmenus Flatmenu Template

1👍

The template location behaviour described in the README for the {% flat_menu %} tag (https://github.com/rkhleics/wagtailmenus#4-using-the–flat_menu–tag) was only introduced in version 2.2.0. You should be able to use your custom template by utilising the template argument, though. For example:

In header.html

{% load menu_tags %}
...
{% flat_menu 'top_sub_menu' template="menus/top_sub_menu.html" %}
...
👤ababic

Leave a comment