Navigation

ThemeWare® Knowledge Base

Hide CMS blocks on mobile devices

How to hide a CMS block or a section on smartphone, tablet or desktop: block settings, section Visibility, deselect the device.

Applies to Shopware 6.7 · Checked on

In Shopware 6 you can hide a CMS block or an entire section on individual devices. The setting is called "Visibility" and is part of the block settings of your Shopping Experience.

Hide a block

  1. In the administration, open "Content" => "Shopping Experiences" and your layout
  2. Click on the block you want to hide. The "Block settings" open on the right
  3. Open the section "Visibility"
  4. Under "Devices", click on the device on which the block should not appear, for example "Mobile"
  5. Save the layout
Block settings in the Shopping Experiences editor with the section Visibility and the devices Mobile, Tablet and Desktop

Section "Visibility" in the block settings

You can choose between "Mobile", "Tablet" and "Desktop" and deselect several devices. With the device icons in the header of the editor you switch the preview and check the result. The editor marks a block that is hidden in the selected preview.

Hidden CMS block in the Shopping Experiences editor

Invisible CMS block

Hide a section

For an entire section you proceed in the same way: click on the section, open the section "Visibility" in the section settings and deselect the devices.

Note: A hidden block remains in the source code of the page and is hidden via CSS (classes hidden-mobile, hidden-tablet, hidden-desktop). Images of the block are therefore still loaded. If you do not need a piece of content on any device, delete the block.

Different content per device

If you want to show different content on smartphones than on desktops, create two blocks and hide each of them on the other devices. These guides show an example and further options:

Last updated on

More from ThemeWare®: About ThemeWare® · Demoshops · Manual · Video tutorial · Utilities

This page online: https://knowledge.themeware.design/knowledge-base/tutorials/shopping-experiences/hide-cms-blocks-on-mobile-devices · ThemeWare® Service Portal, service.themeware.design