On this page
  1. Block "Six columns (Custom)"
  2. Spacing between columns
  3. Padding and margin
  4. Maximum width
  5. Shadows, images and headlines
  6. More classes

Column CSS classes in CMS elements

Shopware offers a field for your own CSS classes on every block and element. The theme ships ready-made classes you can enter there. This lets you control columns, spacing, shadows and more without writing code. Separate several classes with spaces.

On blocks the field is called CSS classes. You find it in the block settings under Layout. The theme elements have the fields CSS class (Element) and more, for example CSS class (Title), in the tab Advanced.

Note: The theme only loads many of these classes if the matching setting is active. You find the settings in the theme configuration in the tab Others, block Advanced settings, section Additional CSS classes. For each class below, the matching setting is named.

Block "Six columns (Custom)"

Class Effect
cas-flex-columns In the field CSS classes of the block. All columns get the width auto instead of fixed column widths.
cas-justify-content-start, cas-justify-content-center, cas-justify-content-end, cas-justify-content-between, cas-justify-content-around, cas-justify-content-evenly In the field CSS classes of the block. Aligns the columns of a row horizontally.
CSS class (Column) Field in the element Round teaser (tab Advanced, section Expert settings). Replaces the default classes of the column the teaser sits in. The default is col-12 col-md-6 col-lg-4 col-xl-2. You can enter your own Bootstrap column classes, for example col-6 col-lg-3.

Other elements do not have this field. With cas-flex-columns it is not evaluated.

Spacing between columns

Setting: Load CSS column spacing classes (optional), yes by default. Put the classes on the block.

Class Effect
cas-cms-col-padding-0, -5, -10, -15, -25, -30, -35, -40, -45, -50 Horizontal space between two columns, twice the number (cas-cms-col-padding-5 gives 10 px). Without a class it is 40 px. Column blocks only.
cas-cms-col-margin-5 to cas-cms-col-margin-80 in steps of 5 Space between columns that are stacked, for example on phones. Without a class it is 0 px.
cas-cms-col-gap-0 to cas-cms-col-gap-50 in steps of 5, equivalent cas-cms-grid-gap-… Horizontal and vertical space at once, as large as the number. For column and grid blocks. In grid blocks, use these classes instead of the padding classes.

Padding and margin

Setting: Load CSS spacing classes (optional), yes by default (Bootstrap 5). The classes work inside the shopping experience page.

Class Effect
cas-m-0 to cas-m-9, cas-mt-… (top), cas-mb-… (bottom), cas-ms-… (left), cas-me-… (right), cas-mx-…, cas-my-… Margin. Each step is 10 px, cas-mt-2 gives 20 px.
cas-mt-n1 to cas-mt-n9 and the other directions Negative margin, cas-mt-n2 gives -20 px.
cas-p-0 to cas-p-9, cas-pt-…, cas-pb-…, cas-ps-…, cas-pe-…, cas-px-…, cas-py-… Padding in 10 px steps, cas-p-4 gives 40 px.

If you choose yes (Bootstrap 4) in the setting, left and right are called cas-ml-…, cas-mr-…, cas-pl-…, cas-pr-…. With the setting Load extended CSS spacing classes (optional), no by default, the same classes exist per screen width, for example cas-mt-md-n2 (from 768 px). The abbreviations are sm (from 576 px), md (768 px), lg (992 px) and xl (1200 px).

Maximum width

Setting: Load CSS "max-width" classes (optional), no by default.

  • cas-cms-max-width limits to the maximum width of the theme container and centres.
  • cas-cms-max-width-500, -576, -600, -700, -768, -800, -900, -992, -1000, -1100, -1200, -1300, -1400, -1500, -1600, -1700, -1800 and -1920 limit to the number in pixels and centre.

Shadows, images and headlines

Class Effect Setting
cas-cms-box-shadow-level-1 to -5 Shadow on the block in five levels. Load CSS box shadow classes (optional), default yes
cas-cms-image-border-solid, cas-cms-image-border-semi Border around the images in the block: white or semi-transparent white. In the English admin this setting is also labelled "Load CSS box shadow classes (optional)" (German: CSS-Klassen für Bild-Dekorationen laden (optional)), default yes
cas-cms-image-box-shadow-sm, cas-cms-image-box-shadow, cas-cms-image-box-shadow-lg, cas-cms-image-box-shadow-level-1 to -5, cas-cms-image-rounded Shadows and rounded corners for the images in the block. as above
cas-cms-image-hover-opacity, -zoom, -zoom-in, -zoom-out, -grayscale, -grayscale-in, -grayscale-out, -shine, -flash, -rotate, -rotate-left, -rotate-right, -blur, -blur-in, -blur-out (each with the prefix cas-cms-image-hover) Hover effects for the images in the block, for example cas-cms-image-hover-zoom. Load CSS image hover classes (optional), default yes
cas-cms-headline-bath, -clean, -clean-v2, -flower, -kids, -ladieswear, -plants, -classic Ready-made headline styles for h1 to h6 in the block. Load CSS headline classes (optional), default yes

More classes

The theme always loads these classes.

  • cas-cms-font-family-base and cas-cms-font-family-headline set the font to Text or Headlines.
  • cas-cms-block-boxed limits a block to the container width minus 40 px and centres it.
  • cas-cms-boxed-content limits all blocks of a section to this width.
  • cas-cms-block-boxed-left and cas-cms-block-boxed-right are for two columns in a full-width section. The text column ends at the middle of the container, the other column runs to the edge without padding. Left means text in column 1, right means text in column 2.
  • cas-cms-hide-manufacturer-logo hides the manufacturer logo in the product heading.
  • autoplay in the field CSS classes of a Hero slider (2x), (3x) or (4x) block switches on the automatic transition for that block.

Warning: Check the page on different screen sizes after entering classes.

Was this page helpful?