# How to add JS and CSS files in Plugin frontend template?

**URL:** <https://forum.shopware.com/t/how-to-add-js-and-css-files-in-plugin-frontend-template/44590>\
**Category:** Plugins\
**Tags:** plugin-wünsche\
**Created:** [17. März 2017 um 14:45 UTC](https://forum.shopware.com/t/how-to-add-js-and-css-files-in-plugin-frontend-template/44590 "2017-03-17T14:45:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kraath](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kraath](https://forum.shopware.com/u/kraath)\
**Post date:** [17. März 2017 um 14:45 UTC](https://forum.shopware.com/t/how-to-add-js-and-css-files-in-plugin-frontend-template/44590/1 "2017-03-17T14:45:32Z")

</div>

Hi, i am developing a plugin. In which i created a custom model. and want to display stats data on Product/Item detail page.

I extended the detail page. Now i need to add Css and Js file. How can i acheive this?

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [17. März 2017 um 15:53 UTC](https://forum.shopware.com/t/how-to-add-js-and-css-files-in-plugin-frontend-template/44590/2 "2017-03-17T15:53:22Z")

</div>

Search for **addLessFiles** and **addJsFiles** on&nbsp;[Shopware 5 Plugin update guide](https://developers.shopware.com/developers-guide/shopware-5-plugin-update-guide/)

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [17. März 2017 um 16:15 UTC](https://forum.shopware.com/t/how-to-add-js-and-css-files-in-plugin-frontend-template/44590/3 "2017-03-17T16:15:44Z")

</div>

Thats how you do it in the standard plugin system, not the new one.
