# Extending Foot - unknown category\_url function

**URL:** https://forum.shopware.com/t/extending-foot-unknown-category-url-function/86335
**Category:** Themes & Design (EN)
**Created:** [19. März 2021 um 21:00 UTC](https://forum.shopware.com/t/extending-foot-unknown-category-url-function/86335 "2021-03-19T21:00:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![towo1977](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@towo1977](https://forum.shopware.com/u/towo1977)
#### Post date: [19. März 2021 um 21:00 UTC](https://forum.shopware.com/t/extending-foot-unknown-category-url-function/86335/1 "2021-03-19T21:00:53Z")

</div>

I try to extend/modify the footer.html.twig

i copied the twig to modify it in my theme.  
at calling frontend i get error 500 cause of „unknown category\_url function“ which is in original File

do i have to include something somewhere else in my theme?

---

<div class="post-metadata">

### Author: ![Shopwarian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shopwarian/32/12844_2.png) [@Shopwarian](https://forum.shopware.com/u/Shopwarian)
#### Post date: [21. März 2021 um 16:42 UTC](https://forum.shopware.com/t/extending-foot-unknown-category-url-function/86335/2 "2021-03-21T16:42:34Z")

</div>

It is hard to evaluate, when you have not posted, what changes have you done, but in general, I think you should rather extend the templates, then copy them. Please see [Shopware 6: Extending a storefront block](https://docs.shopware.com/en/shopware-platform-dev-en/how-to/extending-storefront-block).

---

<div class="post-metadata">

### Author: ![towo1977](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@towo1977](https://forum.shopware.com/u/towo1977)
#### Post date: [25. März 2021 um 18:19 UTC](https://forum.shopware.com/t/extending-foot-unknown-category-url-function/86335/3 "2021-03-25T18:19:55Z")

</div>

currently i just copied the original. (like i wrote 🙂 )  
i´d like to edit the css classes in Block layout\_footer\_navigation\_column

in this block you have links which get there url with \<a href="{{ category\_url(root.category) }}"

but this causes error

---

<div class="post-metadata">

### Author: ![Shopwarian](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shopwarian/32/12844_2.png) [@Shopwarian](https://forum.shopware.com/u/Shopwarian)
#### Post date: [26. März 2021 um 09:57 UTC](https://forum.shopware.com/t/extending-foot-unknown-category-url-function/86335/4 "2021-03-26T09:57:17Z")

</div>

> [@towo1977](#):
>
> footer.html.twig

Are you sure, you have copied it correctly from vendor/shopware/storefront/Resources/views/storefront/layout/footer/footer.html.twig to your theme directory?  
I have no such thing as category\_url in my version of this file. Perhaps you are using some third party theme or plugin, that expects to have category\_url method available?  
In general, you can create links to categories like this:

```
`{{ seoUrl('frontend.navigation.page', { navigationId: category.id }) }}`

```

So whatever you have in there for generating category urls, you can replace it with the fore mentioned code…
