# CMS Block in Template

**URL:** <https://forum.shopware.com/t/cms-block-in-template/65024>\
**Category:** Themes & Design (EN)\
**Created:** [26. Februar 2020 um 16:06 UTC](https://forum.shopware.com/t/cms-block-in-template/65024 "2020-02-26T16:06:14Z")\
**Posts on this page:** 4\
**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:** [26. Februar 2020 um 16:06 UTC](https://forum.shopware.com/t/cms-block-in-template/65024/1 "2020-02-26T16:06:14Z")

</div>

Hi everyone!

Is it possible to make a CMS block inside a theme?

or does it has to be a completely different plugin?

---

<div class="post-metadata">

**Author:** ![timbrns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timbrns/32/19740_2.png) [@timbrns](https://forum.shopware.com/u/timbrns)\
**Post date:** [27. Februar 2020 um 06:17 UTC](https://forum.shopware.com/t/cms-block-in-template/65024/2 "2020-02-27T06:17:22Z")

</div>

Hi Yafar,

the CMS Blocks in Shopware 6 are always added within a Shopping Experience, therefore it is recommandable to also add new blocks as a plugin for the Shopping Experiences instead of „hardcoding“ those blocks into your template.

Kind regards

---

<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:** [27. Februar 2020 um 08:00 UTC](https://forum.shopware.com/t/cms-block-in-template/65024/3 "2020-02-27T08:00:05Z")

</div>

Ok, thanks!

One more question  
So if you want a template that is based on new CMS blocks, like a template that has a complete folder and code structure  
You need to create a CMS plugin and just add a dependency through composer?

---

<div class="post-metadata">

**Author:** ![timbrns](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timbrns/32/19740_2.png) [@timbrns](https://forum.shopware.com/u/timbrns)\
**Post date:** [27. Februar 2020 um 08:42 UTC](https://forum.shopware.com/t/cms-block-in-template/65024/4 "2020-02-27T08:42:32Z")

</div>

Hi Yafar,

yeah thats right, you can add stylings and everything within the plugin which adds a new cms block and get it up and running trough composer.

Kind regards,  
Tim
