All pages
Powered by GitBook
1 of 2

Loading...

Loading...

Inserting images into text fields

Images can currently only be inserted into text fields of CMS elements with a little "trick". We explain how this works in these instructions.

  1. Open the administration of your shop

  2. Media Manager

    1. Switch to the Media Manager via the main navigation ("Content" => "Shopping Experiences")

    2. Browse for the desired image

    3. Now copy the path to the image to the clipboard by clicking on "Copy Link" (1, 2)

  3. HTML code

    • To insert the image as an HTML element in a text field, you must insert the path in a corresponding HTML code

    • Use the following example for this: <img src="..." alt="...">

  4. Shopping Experience Management

    1. Switch to Shopping Experience Management via the main navigation ("Content" => "Shopping Experiences")

    2. Open the desired CMS layout

    3. Click on the

You have now inserted an image into a text field.


You can find more information about inserting HTML code and the Shopware 6 HTML Sanitizer in the following article:

Replace the ellipsis in the src tag with the image path

  • Replace the ellipsis in the tag alt with a short description of the image

  • "gear" icon to configure the desired CMS element
  • The pop-up "Element settings" will open

  • Click on the "code" icon to switch to HTML mode (3)

  • Insert the HTML code created above at the desired position

  • Wait a moment until the HTML Sanitizer of Shopware 6 has checked the code

  • Save your changes

  • <img src="..." alt="...">

    Screenshots

    Note: If an image is missing in the Storefront, the path to the image has probably changed (e.g. by renaming or moving it). Just correct the path by repeating the above steps.

    Code example

    Further information

    HTML code

    Shopping Experiences

    Shopping Experiences in Shopware 6: create and centrally manage landing pages, shop pages and category layouts with drag & drop.

    In the Shopping Experiences you can create and centrally manage content pages such as landing pages, shop pages and category layouts.

    Please find more information regarding "Shopping Experiences" in the official Shopware documentation:

    ThemeWare® tip: ThemeWare® extends the Shopping Experiences with numerous additional CMS blocks and CMS elements – from teasers, banners and hero sliders to sale elements – including a variety of animations and hover effects for lively content pages.

    Further information

    Shopware 6 - Content - Shopping Experiencesdocs.shopware.com
    Shopware documentation: Shopping Experiences
    Logo