Zenit Design - Themes
Buy themeThemesSupport
EN
EN
  • First steps
  • Start Guides
    • Atmos - Demo 1
    • Atmos - Demo 2
    • Atmos - Demo 3
    • Atmos - Demo 4
    • Gravity - Demo 1
    • Gravity - Demo 2
    • Horizon - Demo 1
    • Horizon - Demo 2
    • Sphere - Demo 1
    • Sphere - Demo 2
    • Stratus - Demo 1
    • Stratus - Demo 2
    • Stratus - Demo 3
    • Stratus - Demo 4
  • Tips
    • Dashboard
    • Theme configuration
    • Dictionary
    • Multiple sales channels
  • Configuration sets
  • Support
    • Read errors
    • Find cause
  • 🎨Styling
    • General
      • Basic layout
      • Product images
      • Produkt Layout-Typ
      • Global background
      • Preloader
      • Accent line
      • Scroll animation
    • Typo & Colors
      • Theme colors
      • Status messages
      • Fonts
      • Typography
      • E-Commerce
      • Buttons
    • Logos
    • Header
      • Header
      • Search
      • Top bar
      • Shop navigation
      • Main navigation
      • Flyout navigation
      • Dropdown navigation
    • Footer
      • Footer
      • Content
      • Columns
      • Columns styling
      • Footer bottom
    • Components
      • Sidebar
      • Sidebar navigation
      • Forms
      • Image & gallery slider
      • Produkt slider
      • Category Listing Slider
      • Pagination
      • Breadcrumbs
      • Cookie banner
      • Offcanvas
      • Backdrop
      • Scroll-Up button
    • Category
      • Category header
      • Hero section
      • Filter
      • Listing actions
      • Product boxes
      • Quickview
    • Product
      • Detail
      • Gallery
      • Description
      • Description navigation
      • Description content
    • Checkout
      • Cart
      • Checkout
  • ⚙️SETTINGS
    • Basic settings
    • Custom field assignment
      • Custom fields for product page details
      • Custom fields for product datasheets
    • Social media icons
    • Marketing text slider
    • Custom tab details page
    • Custom footer columns
    • Custom code
  • 📂Contents
    • Shopping experiences
      • Sections
      • Blocks
        • Elements
          • Image text slider
          • Search banner
          • Text banner
          • Teaser
          • Features
          • Breadcrumbs
          • Code
          • Divider
          • Category-navigation
          • Footer navigation
          • Placeholder
        • Commerce
          • Image gallery and buy box with product name & manufacturer logo
          • Image gallery and buy box with product name & manufacturer logo & description
          • Image gallery and buy box with description
          • Image gallery with description and buy box with product name & manufacturer logo
        • Category
          • Category listing
        • Columns
        • Layouts
      • Block inner spacings
      • Block outer spacings
      • Animations
      • CSS Variables
    • Category
      • Hero section
      • Category header
      • CSS classes
      • Category badges
      • Category Icons
      • Products per row
    • Product page
      • Layouts
      • Default layout
      • Gallery mode
      • Custom tabs
      • Videos tab
      • Datasheets
    • Product images
      • Image sizes
      • Aspect ratio
      • File format
      • Product image background
    • Layout type
    • Responsive tables
    • Multilingualism
  • 🎓Tutorials
    • Demodata import
    • Demo theme configuration import
    • Duplicate Child-Theme
    • Customizations
    • Configuration export/import
    • Custom Fields export/import
    • Embed fonts locally
    • Embed fonts locally with child-theme
  • 🛠️Update Guides
    • Child theme update
    • Shopware 6.6.9.0
    • Shopware 6.6.0.0
    • Shopware 6.5.0.0
    • Theme 3.5.3
    • Theme 2.11.0
  • ❓FAQ
    • Overview
    • Accessibility
      • Typography
      • Colors
      • Images
      • Video
      • Accessibility checker and resources
    • General
      • Copyright notice
      • Wishlist
    • Product layout
    • Licenses
      • Trial version vs full version
      • Changing the licence domain
    • Derivations
      • Child theme
      • Theme duplicate
      • Child theme vs theme duplicate
    • Updates
      • Theme is displayed as incompatible
      • Update is not displayed
    • Known issues
      • Could not assign child-theme
      • Text modules show technical name
      • Theme save error
      • SVG logo is not displayed
      • Search / Input mobile zoom
      • Text is not visible / readable
Powered by GitBook
On this page
  • Configuration per category
  • 1. Settings in the category
  • 2. Deposit an image
  • Configuration for all categories
  • Configuring the shopping experience layout
  • Fallback Image

Was this helpful?

  1. Contents
  2. Category

Hero section

This setting is located in the custom fields of your category: Catalogues > Categories > [select category]

Last updated 1 year ago

Was this helpful?

In our themes you can display the category image in the first section of a shopping experience category page layouts - automatically! The image stored in the category is automatically used as background image in the first section of the shopping experience. Shopping experience elements can be placed on top of this image.

This way, you can use a single shopping experience to automatically show the appropriate image for each category without having to create individual layouts for each category.

Configuration per category

1. Settings in the category

To setup this functionality for each category individually, we have implemented custom fields in the category:

  • Use first section of listing layout as "Hero section" (1) [ Inherit | Yes | No ]

  • Text contrast (2) [ Inherit | Light text | Dark text ]

  • Background color (3) [ Colorpicker ]

  • Opacity (4) [ Percentage value ] - Visibility of the image on the background color in percent

  • Position (6) [ Selection ] - Alignment of the image in the container in which it expands.

  • Image mode (7)

    • Auto: The image is displayed in its entirety. The height of the element is dynamic and automatically adjusts to the aspect ratio of the image. If the width of the image is less than the width of the element, the image will not be stretched to the width of the element.

    • Cover: The element is completely filled with the image. In the case of smaller images, this causes them to be stretched (and therefore appear blurry). Images with an inappropriate aspect ratio will have the longer side cut off, meaning the full image will not be displayed.

    • Stretch: The image is displayed completely. The height of the element is dynamic and automatically adjusts to the aspect ratio of the image. In contrast to the Standard mode, the image is stretched to the full available width of the element.

2. Deposit an image

Of course, the category needs a background image, which you can store directly in the category.

If no picture is stored in the category, the background image from the shopping experience section will be displayed as a fallback (if there is an image assigned).

After that, all you have to do is create a shopping experience category layout and prepare it for displaying the image. We will show you how to do this in the following section "Configuring the shopping experience layout".

Configuration for all categories

Using the theme configuration, the settings for displaying the category image can also be set globally for all categories and partially overridden in the respective category.

The custom fields in the category inherit these settings by default and can also overwrite them. This also makes it possible to exclude individual categories from these functionality.

If you want to display a category image on all but a few categories, then you don't have to repeat these settings in each category.

  • Display category image (1) [ Yes | No ]

  • Text contrast (2) [ Light text | Dark text ]

  • Background color - is set in the shopping experience layout.

  • Opacity (3) [ Percentage value ] - Visibility of the image on the background color in percent

  • Position (5) [ Selection ] - Alignment of the image in the container in which it expands.

After that, all you have to do is create a shopping experience category layout and prepare it for displaying the image. We will show you how to do this in the following section "Configuring the shopping experience layout".

Configuring the shopping experience layout

To prevent the category image from being displayed uncontrollably in the first section of any category, you still need a shopping experience layout that is prepared for displaying the category image.

To do so, switch to the Shopping experience section under Content > shopping experiences and select the tab Listing page (1).

There are two listing layouts by default. Choose one of them and duplicate (2) it via the context menu. The duplicated layout can then be edited:

Create a new section (1) for your category image. In the first section you can, for example, place an image-text block (2) and our breadcrumbs element (3) which allows the breadcrumb navigation to be displayed on this category image. Delete the unnecessary elements (4) from the second section if you like.

Fallback Image

You can include a fallback image (2) and a fallback color (1) in the shopping experience section, which will be displayed if no category image and/or background color has been assigned to the category.

___________________

* For technical reasons, the breadcrumb element is not available in the cloud version.

Attachment (5) [ Inherit | Fixed | Scroll ] - Fixed images stretch to the entire viewport and stop when scrolling down the page.

Attachment (4) [ Fixed | Scroll ] - Fixed images stretch to the entire viewport and stop when scrolling down the page.

With data mapping, you can automatically map the category description to the text element.

📂
More information
More information
Learn more