# Override theme /plugin twig files does not work

**URL:** <https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146>\
**Category:** Themes & Design (EN)\
**Created:** [24. August 2020 um 19:21 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146 "2020-08-24T19:21:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rappas](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rappas](https://forum.shopware.com/u/rappas)\
**Post date:** [24. August 2020 um 19:21 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146/1 "2020-08-24T19:21:40Z")

</div>

Hello,

I have a clean installation of shopware 6 (mac with docker sync).  
Create a theme plugin. Everything works with for example javascript. But overwriting a twig file does not work:

- I’ve setted the cache: false in the twig yaml
- I use the following path like the example:&nbsp;touch src/Resources/views/storefront/layout/header/logo.html.twig

Can somebody set me in the right direction? I cannot create themes / plugins without this working.

---

<div class="post-metadata">

**Author:** ![Timmy\_Clark](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmy_clark/32/23750_2.png) [@Timmy\_Clark](https://forum.shopware.com/u/Timmy_Clark)\
**Post date:** [11. September 2020 um 12:20 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146/2 "2020-09-11T12:20:31Z")

</div>

Hi Rappas,

&nbsp;

you can find information on how to create theme’s for shopware 6, [here](https://docs.shopware.com/en/shopware-platform-dev-en/theme-guide/theme-create?category=shopware-platform-dev-en/theme-guide)

Information about working with&nbsp;Twig can be found [here](https://docs.shopware.com/en/shopware-platform-dev-en/theme-guide/twig-templates?category=shopware-platform-dev-en/theme-guide)  
Also remember that Twig doesn’t allow&nbsp;multi inheritance out of the box.&nbsp;Therefore we created our own twig functions&nbsp;`sw_extends`&nbsp;and&nbsp;`sw_include.`

Best regards,

Timmy

---

<div class="post-metadata">

**Author:** ![gregamer](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@gregamer](https://forum.shopware.com/u/gregamer)\
**Post date:** [2. Februar 2021 um 16:53 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146/3 "2021-02-02T16:53:32Z")

</div>

I’m having the same issue. However the installation on my server works like a charm. I have two options there:

1. enable dev anvironment in .env and any changes to twig files are visible on refresh,
2. or leave environment to production, cache on, but in this case I need to to go Settings -\> system -\> cache and clear cache

In both cases I can see the change in the twig file. Now, working on an installation on my client’s server I can’t get the changes to appear. The scss changes are visible, but twig is just dead. I don’t have access to anything else than custom theme folder so I can’t make any conf changes.

Does anyone have any idea what that could be and how to fix?

Thanks,  
Grega

---

<div class="post-metadata">

**Author:** ![dubinam](https://avatars.discourse-cdn.com/v4/letter/d/e9bcb4/32.png) [@dubinam](https://forum.shopware.com/u/dubinam)\
**Post date:** [4. Februar 2021 um 16:07 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146/4 "2021-02-04T16:07:15Z")

</div>

> [@Timmy\_Clark schrieb:](https://forum.shopware.com/profile/34347/Timmy_Clark "Timmy\_Clark")
> 
> Hi Rappas,
> 
> &nbsp;
> 
> you can find information on how to create theme’s for shopware 6, [here](https://docs.shopware.com/en/shopware-platform-dev-en/theme-guide/theme-create?category=shopware-platform-dev-en/theme-guide)
> 
> Information about working with&nbsp;Twig can be found [here](https://docs.shopware.com/en/shopware-platform-dev-en/theme-guide/twig-templates?category=shopware-platform-dev-en/theme-guide)  
> Also remember that Twig doesn’t allow&nbsp;multi inheritance out of the box.&nbsp;Therefore we created our own twig functions&nbsp;`sw_extends`&nbsp;and&nbsp;`sw_include.`
> 
> Best regards,
> 
> Timmy

Hey Timmy, I have the same issue with twig binding. Did the same said in link you put upper. I used clear DockWare image, Mac OS. Version&nbsp;&nbsp;6.3.5.0.&nbsp;

Changes in plugin config works well as a changes in styles. I also try make changes inside vendor views and they appear. But plugin views don’t want(&nbsp;

---

<div class="post-metadata">

**Author:** ![rappas](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@rappas](https://forum.shopware.com/u/rappas)\
**Post date:** [4. Februar 2021 um 16:30 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146/5 "2021-02-04T16:30:38Z")

</div>

The problem I had was docker-sync. But when installed correctly or using dockware these problems solved for my scenario on a Mac.

---

<div class="post-metadata">

**Author:** ![Velonista-Team](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/velonista-team/32/20105_2.png) [@Velonista-Team](https://forum.shopware.com/u/Velonista-Team)\
**Post date:** [16. März 2023 um 10:21 UTC](https://forum.shopware.com/t/override-theme-plugin-twig-files-does-not-work/69146/6 "2023-03-16T10:21:26Z")

</div>

Hi Grega,

did you find a solution to this issue?  
Back then, did you work with dockware:dev or dockware:essentials?

I’m working with dockware:essentials and I have the same issue that twigs are ignored; whether dev or prod in .env won’t change the problem; compiling the theme and clearing cache won’t work either.

Thanks  
Roxana
