# Override registration template

**URL:** <https://forum.shopware.com/t/override-registration-template/97133>\
**Category:** Shopware 6 (English)\
**Tags:** general, administration, programming, templates--design, other, themes--design, offizielle-shopware-\
**Created:** [16. November 2022 um 15:44 UTC](https://forum.shopware.com/t/override-registration-template/97133 "2022-11-16T15:44:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopwarer1638](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@shopwarer1638](https://forum.shopware.com/u/shopwarer1638)\
**Post date:** [16. November 2022 um 15:44 UTC](https://forum.shopware.com/t/override-registration-template/97133/1 "2022-11-16T15:44:18Z")

</div>

Hello, can anyone tip on how to override registration template **address-personal-company.html.twig** in a child theme?

We try to put it in a child theme using, it doesnt work:  
{% sw\_extends ‚@Storefront/storefront/component/address/address-personal-company.html.twig‘ %}

Though direct editing works, but we can’t do it for the safe updates surely.

---

<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:** [17. November 2022 um 17:17 UTC](https://forum.shopware.com/t/override-registration-template/97133/2 "2022-11-17T17:17:28Z")

</div>

Extending is not the same as overriding. If you extend, you have to add twig blocks. If you wish to override the whole file, then you do not need the sw\_extends line.

Did you select the child theme for your sales channel?

---

<div class="post-metadata">

**Author:** ![shopwarer1638](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@shopwarer1638](https://forum.shopware.com/u/shopwarer1638)\
**Post date:** [17. November 2022 um 18:34 UTC](https://forum.shopware.com/t/override-registration-template/97133/3 "2022-11-17T18:34:09Z")

</div>

Yes, child theme is activated and we clean the cache. We tried both extending and editing, but it only works via direct editing it in vendor directory. It looks like this is due to a plugin, that alters the same template.

---

<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. November 2022 um 08:47 UTC](https://forum.shopware.com/t/override-registration-template/97133/4 "2022-11-18T08:47:10Z")

</div>

Then do not extend the Storefront, extend the other Plugin.

```auto
{% sw_extends ‚@PluginFolderName/storefront/component/address/address-personal-company.html.twig‘ %}

```
