# Icons in CMS Block einfügen

**URL:** <https://forum.shopware.com/t/icons-in-cms-block-einfuegen/104370>\
**Category:** Themes & Design\
**Created:** [25. Juni 2024 um 11:30 UTC](https://forum.shopware.com/t/icons-in-cms-block-einfuegen/104370 "2024-06-25T11:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marc\_E](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Marc\_E](https://forum.shopware.com/u/Marc_E)\
**Post date:** [25. Juni 2024 um 11:30 UTC](https://forum.shopware.com/t/icons-in-cms-block-einfuegen/104370/1 "2024-06-25T11:30:01Z")

</div>

Hallo,

kann mir jemand sagen wir ich in einem CMS-Block bei SW6.5.8.7 ein Icon einfügen kann?

 ![2024-06-25 13_26_12-Kategorie mit Sidebar & Header _ Erlebniswelten _ Shopware Administration](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/b/c/bc60a031062fdee44845bda3ca3f369cd17e10b7.png)

Mit diesem Code im HTML findet er das Icon nicht:  
`<img src="/bundles/storefront/assets/icon/default/alert.svg" />`

Gibt es einen einfachen Weg?

---

<div class="post-metadata">

**Author:** ![flundi81](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/flundi81/32/24725_2.png) [@flundi81](https://forum.shopware.com/u/flundi81)\
**Post date:** [25. Juni 2024 um 11:40 UTC](https://forum.shopware.com/t/icons-in-cms-block-einfuegen/104370/2 "2024-06-25T11:40:42Z")

</div>

Ich bin mir nicht Sicher, könnte da der Sanitizer ärger machen?

---

<div class="post-metadata">

**Author:** ![Marc\_E](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Marc\_E](https://forum.shopware.com/u/Marc_E)\
**Post date:** [25. Juni 2024 um 11:49 UTC](https://forum.shopware.com/t/icons-in-cms-block-einfuegen/104370/3 "2024-06-25T11:49:06Z")

</div>

Daran liegt es nicht.  
Mit `<img src="/bundles/storefront/assets/icon/default/alert.svg" />` wird kein Bild gefunden.

---

<div class="post-metadata">

**Author:** ![area-net-gmbh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/area-net-gmbh/32/21995_2.png) [@area-net-gmbh](https://forum.shopware.com/u/area-net-gmbh)\
**Post date:** [25. Juni 2024 um 13:02 UTC](https://forum.shopware.com/t/icons-in-cms-block-einfuegen/104370/4 "2024-06-25T13:02:12Z")

</div>

Weil es die dort auch nicht physisch gibt. Du kannst die Shopware Icons nur in Twig-Templates einbinden, dann werden sie dynamisch und inline gerendert/dargestellt.

Alternative wäre Font Awesome (o.ä.) zu nutzen. Entweder, wenn die entsprechende Bibliothek über das Theme bereits eingebunden ist oder halt über ein Plugin aus dem Store.

Dann kannst du den entsprechenden HTML-Code für die Anzeige des Icons integrieren.
