Module overwrites theme template

Created on 9 August 2024, 5 months ago

Problem/Motivation

I have overwritten the menu.html.twig file in my theme folder. After installing the Menu attributes module it overwrites the menu.html.twig file in core and in my theme folder. So the menu.html.twig file in the menus_attribute/templates/ folder is leading which leads to problems when you update the module and this file is replaced/updated.

Steps to reproduce

  • Overwrite the menu.html.twig file in your theme directory.
  • Install the Menus attributes module.
  • Change the menu.twig.html file in your theme directory to show it has no effect.

Proposed resolution

Making the theme overwrite leading as you should have full control on overwrites in your theme folder and not be dependent on modules.

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

🇳🇱Netherlands rroose

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024