# Block in /utilities/offcanvas.html.twig lässt sich einfach nicht überschreiben

**URL:** https://forum.shopware.com/t/block-in-utilities-offcanvas-html-twig-laesst-sich-einfach-nicht-ueberschreiben/99341
**Category:** Shopware 6 (German)
**Created:** [15. April 2023 um 09:05 UTC](https://forum.shopware.com/t/block-in-utilities-offcanvas-html-twig-laesst-sich-einfach-nicht-ueberschreiben/99341 "2023-04-15T09:05:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zlep](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zlep](https://forum.shopware.com/u/zlep)
#### Post date: [15. April 2023 um 09:05 UTC](https://forum.shopware.com/t/block-in-utilities-offcanvas-html-twig-laesst-sich-einfach-nicht-ueberschreiben/99341/1 "2023-04-15T09:05:56Z")

</div>

Hallo,

ich versuche einen Block in /utilities/offcanvas.html.twig innerhalb meines Plugins zu überschreiben. Dazu mache ich nichts anders als bei anderen html.twig Dateien. Ich lege innerhalb meines Plugins die gleiche Ordnerstruktur an, also /Resources/views/storefront/utilities/offcanvas.html.twig

Die Datei wird jedoch einfach nicht geladen (laut Symfony Profiler). Habe es bereits mit

{% sw\_extends ‚@Storefront/storefront/utilities/offcanvas.html.twig‘ %}  
und ohne versucht.

Gilt für die twig Dateien in utilities irgendetwas Besonderes?  
Danke

---

<div class="post-metadata">

### Author: ![zlep](https://avatars.discourse-cdn.com/v4/letter/z/9de0a6/32.png) [@zlep](https://forum.shopware.com/u/zlep)
#### Post date: [18. April 2023 um 08:25 UTC](https://forum.shopware.com/t/block-in-utilities-offcanvas-html-twig-laesst-sich-einfach-nicht-ueberschreiben/99341/2 "2023-04-18T08:25:49Z")

</div>

Hallo,

keiner eine Idee?  
Das ist doch sehr seltsam, oder?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [18. April 2023 um 08:56 UTC](https://forum.shopware.com/t/block-in-utilities-offcanvas-html-twig-laesst-sich-einfach-nicht-ueberschreiben/99341/3 "2023-04-18T08:56:31Z")

</div>

Es gibt zahlreiche offcanvas: [Search · offcanvas · GitHub](https://github.com/shopware/platform/search?l=Twig&q=offcanvas)

Vielleicht überschreibst du einfach nur den „falschen“?

Falls du schon Shopware 6.5 nutzt:

{#  
@deprecated tag:v6.5.0 - Announcement:  
Bootstrap v5 comes with its own OffCanvas component.  
This template will be adjusted to use Bootstraps OffCanvas markup.  
@see [Offcanvas · Bootstrap v5.1](https://getbootstrap.com/docs/5.1/components/offcanvas)  
#}
