# Overriding Mautic 6 Twig Templates With a Plugin

**URL:** https://forum.mautic.org/t/overriding-mautic-6-twig-templates-with-a-plugin/35677
**Category:** Development
**Created:** [May 16, 2025, 2:22pm UTC](https://forum.mautic.org/t/overriding-mautic-6-twig-templates-with-a-plugin/35677 "2025-05-16T14:22:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![andrew\_c3](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andrew_c3/32/13547_2.png) [@andrew\_c3](https://forum.mautic.org/u/andrew_c3)
#### Post date: [May 16, 2025, 2:22pm UTC](https://forum.mautic.org/t/overriding-mautic-6-twig-templates-with-a-plugin/35677/1 "2025-05-16T14:22:22Z")

</div>

Hello,

In Symfony 6 you can override a twig file with another twig file so the the custom twig takes precedence.

I’ve created a simple plugin on Mautic 6 to override the following twig:  
app/bundles/UserBundle/Resources/views/Security/base\_html.twig

However I cant’ get the paths correct in the plugin structure to get the override to work. Or is there code in Mautic to disable this feature ?

There is a similar thread but no one replied sadly.  
[Overriding Mautic5 Twig templates with a plugin](https://forum.mautic.org/t/overriding-mautic5-twig-templates-with-a-plugin/31248)?

It would not help anyway as I believe the paths are different between Symfony 5 and 6 anyway.

I would kindly ask a plugin developer for help as I cant find any relevant docs on the subject and ChatGPT only gives answers that don’t work, I’ve tried them all.

Thanks.
