# Overwriting theme wierd behaviour

**URL:** <https://forum.shopware.com/t/overwriting-theme-wierd-behaviour/65875>\
**Category:** Themes & Design (EN)\
**Created:** [30. März 2020 um 15:04 UTC](https://forum.shopware.com/t/overwriting-theme-wierd-behaviour/65875 "2020-03-30T15:04:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yafar\_iSi](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/yafar_isi/32/10765_2.png) [@Yafar\_iSi](https://forum.shopware.com/u/Yafar_iSi)\
**Post date:** [30. März 2020 um 15:04 UTC](https://forum.shopware.com/t/overwriting-theme-wierd-behaviour/65875/1 "2020-03-30T15:04:08Z")

</div>

There is some weird behavior when overwriting theme files…

Example:  
`platform/src/Storefront/Resources/views/storefront/page/content/index.html.twig`  
by this one  
`custom/plugins/MyTheme/src/Resources/views/storefront/page/content/index.html.twig`  
The Symfony Profiler will return&nbsp;`@Storefront`&nbsp;first, instead of&nbsp;`@MyTheme`

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/4/41d3a32d678a29dd6c828581e1bf2ccce4e418b7.png)
