LogoLogo
SearchService PortalManualOthersDeutschRequest support
  • Welcome
  • Knowledge Base
    • Introduction
      • Testing ThemeWare®
      • Installing ThemeWare®
      • Activating ThemeWare®
      • Assigning ThemeWare®
      • ThemeWare® Utilities downloaden
      • Überblick Theme-Konfiguration
      • ThemeWare® bearbeiten
      • Themes kombinieren
      • Farben konfigurieren
      • Schriften konfigurieren
      • Logo einbinden
      • Logo konfigurieren
      • Text-Logo konfigurieren
      • Shop-Navigation konfigurieren
      • Texte im Theme bearbeiten
      • USP-Bar konfigurieren
      • Erlebniswelten verstehen
      • ThemeWare® Demoshops
      • Setting up the home page (ThemeWare® Shopping Experience)
      • Design der Kategorie-Seite anpassen
      • Shopseiten bearbeiten und anlegen
      • Service-Navigation konfigurieren
      • Footer-Navigation konfigurieren
      • Footer konfigurieren
      • Zahlungs- und Versandanbieter Logos
      • Mehrsprachigkeit mit ThemeWare®
      • Mehr als ein ThemeWare® Theme nutzen
      • ThemeWare® erwerben
      • Getting support
      • Updates and news
    • Tutorials
      • Administration
        • Testing ThemeWare®
        • Buying ThemeWare®
        • Renting ThemeWare®
        • Uploading ThemeWare®
        • Installing ThemeWare®
        • Activating ThemeWare®
        • Assigning ThemeWare®
        • Editing ThemeWare®
        • Resetting ThemeWare®
        • Rating ThemeWare®
        • Updating ThemeWare®
        • Cleaning up ThemeWare®
        • Deactivating ThemeWare®
        • Uninstalling ThemeWare®
        • Deleting ThemeWare®
        • Returning ThemeWare®
        • Determining the ThemeWare® version
        • Shopware Updates and ThemeWare®
      • Categories
        • Assign a category layout
        • Cooking pleasure & Provence (Demoshop)
        • Craft & Tradition (Demoshop)
        • Create a category
        • Create a category layout
        • Create a category layout with sidebar
        • Make product boxes more compact
        • Make product listings more compact
        • Mountain air & Adventure (Demoshop)
      • Configuration
        • Child theme
        • Color configuration field
        • Field types in the theme configuration
        • Font configuration field
        • Using SCSS functions in the configuration
        • Using theme variables in the configuration
        • ThemeWare® duplicates
        • Creating a ThemeWare® duplicate
        • Renaming a ThemeWare® duplicate
        • Orphaned configuration fields
      • Custom Fields
      • Debugging
        • Identifying the extension as the cause of the error
        • Debugging error messages
        • Narrowing down errors
        • Identifying the theme as the cause of error
        • Debug mode
      • Demoshops
        • Home page
        • Category "Mountain air & Adventure"
        • Category "Cooking pleasure & Provence"
        • Category "Craft & Tradition"
        • Configuration
      • Fonts
        • Embedding fonts locally
        • Embedding fonts locally using the ThemeWare® Customizing Plugin
        • Font configuration
        • Importing Google Fonts
      • Header
        • Configuring the Shopping Experiences Header
      • Individual customizations
        • Individual customizations by means of CSS
        • Individual customizations by means of SCSS
        • Individual template customizations (Twig, HTML)
        • Individual customizations with the ThemeWare® Customizing Plugin
        • Individual customizations with the ThemeWare® Customizing App (Cloud)
        • Embed custom JavaScript code
        • CSS hierarchy
        • Using Bootstrap in the Storefront
        • Show custom fields in the storefront
      • Landing pages
        • Create a landing page
        • Create a landing page layout
        • Assign a landing page layout
        • Create a home page
      • Miscellaneous
        • Clearing / warming up the Shopware cache
        • Clearing the browser cache
        • Compiling the theme
        • Refreshing the storefront
      • Product pages
        • Create a product layout
        • Create a product layout with sidebar
        • Assign a product layout
      • Shop pages
        • Creating a shop page layout
        • Linking shop pages in the storefront
        • Creating a contact page
        • Creating a GTC page
        • Creating a newsletter page
        • Creating a payment and shipping information page
        • Creating a privacy page
        • Creating a revocation notices page
        • Creating an imprint page
      • Shopping Experiences
        • ThemeWare® CMS styling for Shopping Experiences
        • ThemeWare® CSS classes for Shopping Experiences
        • Adjusting column spacings in CMS blocks
        • Adjusting gaps in CMS blocks
        • CSS classes for full-width sections
        • CSS spacing classes for Shopping Experiences
        • Designing headlines in CMS blocks
        • Designing Shopping Experiences with Bootstrap CSS classes
        • Designing Shopping Experiences with Bootstrap HTML code
        • Embellishing images in CMS blocks
        • Embellishing images in CMS blocks with hover effects
        • Embellishing Shopping Experiences with CSS animations
        • Hide CMS blocks on mobile devices
        • Mark CMS blocks as favourites to find them faster
        • Mark CMS elements as favourites to find them faster
        • Recreating category Shopping Experiences of the demoshops
        • Responsive Shopping Experiences
        • Responsive Shopping Experiences with Bootstrap
        • Show custom fields in Shopping Experiences
      • Shopware Account
        • Renew ThemeWare® Subscription
        • Switch to rental license
      • Shopware Store
        • Finding ThemeWare®
        • Testing ThemeWare®
        • Buying ThemeWare®
        • Renting ThemeWare®
        • Purchasing ThemeWare® after the trial period
        • Renting ThemeWare® after the trial month
      • Solving errors
        • Examining extensions or plugins
        • Examining individual customizations
        • Examining Shopware default theme
        • Performing a ThemeWare® Soft Reset
        • Fixing representation errors
        • Reinstalling ThemeWare®
        • Solving known errors by yourself easily
        • Update the shop
      • Texts: Edit and translate
    • Basic knowledge
      • Update guide
      • Color configuration
      • Font configuration
      • HTML code
      • Identifying the current ThemeWare® Version
      • Images
        • Display mode of images
        • Image sizes
      • Licences
      • Payment methods
      • Plugin Compatibility (HC-Architecture®)
      • Shipping methods
      • Shopping Experiences
        • CMS layout
        • CMS section
        • CMS block
        • CMS element
      • Shopware Compatibility
      • Snippets
      • Supported browsers
      • ThemeWare® data
    • Profi knowledge
      • The ultimate Professional Knowledge
      • Backup of the ThemeWare® configuration
      • Backing up and restoring the ThemeWare® configuration
      • Column CSS classes in ThemeWare® CMS elements
      • Deactivating ThemeWare® via the database
      • Debug mode
      • Editing the database with the Adminer
      • Establishing compatibility with ThemeWare® for Shopware 6
      • Expert mode
      • Expert settings in CMS elements
      • Expert settings in the theme configuration
      • Exporting and importing the ThemeWare® configuration
      • HTML Sanitizer
      • Installing ThemeWare® manually
      • Optimizing Shopping Experiences with Bootstrap CSS classes
      • Optimizing Shopping Experiences with Bootstrap HTML elements
      • Resetting the ThemeWare® configuration
      • SCSS
      • ThemeWare® in the database
      • ThemeWare® on the FTP server
      • Twig
      • Updating ThemeWare® manually
      • Uploading ThemeWare® via FTP
      • Using Bootstrap CSS classes
      • Using Bootstrap HTML code
    • Frequent questions
      • Frequently searched features in ThemeWare®
      • Can I extend the trial month?
      • Can I extend the trial period?
      • Do I have to purchase ThemeWare® again for another domain?
      • Do I have to purchase ThemeWare® again for another Sales Channel?
      • How can I change or translate a text (e.g. of widgets)?
      • How can I change the number of levels in the flyout?
      • How can I embed Google Fonts in a GDPR compliant manner locally?
      • How do I cancel a extension rent?
      • How can I customise snippets for individual Sales Channels?
      • How can I customise texts for individual Sales Channels?
      • How can I fix representation errors?
      • How can I hide CMS blocks on mobile devices?
      • How can I hide the product description in product boxes?
      • How can I make individual customisations?
      • How can I make the listing look more compact?
      • How can I make product boxes more compact?
      • How can I remove the border around a CMS block?
      • How can I remove the borders around CMS blocks?
      • How can I remove the spaces in the listing?
      • How can I use a different configuration for a Sales Channel?
      • How can I use an individual configuration for an additional Sales Channel?
      • How do I configure the autoplay in the image slider?
      • How do I use webfonts in a GDPR compliant manner?
      • How to delete licences correctly?
      • The subscription expires - what now?
      • What does "Already compatible" mean?
      • What does "Not compatible" mean?
      • What does "Now avaiable" mean?
      • What does "With new Shopware version" mean?
      • What does the "Extension Warning" window mean when opening my admin?
      • What image sizes should I use with ThemeWare®?
      • When does the trial month end?
      • When does the trial period end?
      • Why does the header overlay the Shopping Experience?
      • Why does the subscription have to be renewed for bought extensions?
      • Why is the new ThemeWare® version not available?
      • Why is ThemeWare® available several times in the Shopware store?
    • Common issues
      • Storefront
        • Branding is shown despite Licence Key
        • CMS blocks are not displayed in Shopping Experience
        • Gallery sliders have a wrong height on mobile devices
        • Header overlays the Shopping Experience on the home page
        • Listing subcategories are not displayed
        • Oops! An Error Occurred
        • Pop-up (e.g. privacy) is displayed without content
        • Privacy pop-up is displayed without content
        • Representation errors in the storefront
        • Representation errors with a theme duplicate after an update
        • Shipping costs pop-up is displayed without content
        • Sticky top navigation does not work
        • T&C pop-up is displayed without content
        • Unfortunately something went wrong on the product page
      • Administration
        • Administration not accessible
        • Allowed memory size of ... bytes exhausted
        • Bad Request...
        • $color: 0 is not a color
        • $color2: 0 is not a color
        • Configuration fields are missing
        • Configuration fields in the "General" tab
        • Configuration required. Please fill in data in all elements.
        • Error 400 / Theme cannot be saved
        • Error 500 / Themes cannot be saved
        • Error: argument '$color'
        • Error compiling theme
        • Errors occurred. Please check the error list in the editor.
        • Features or configurations are missing
        • New configuration fields are missing in a theme duplicate after update
        • Parse error: failed at $...
        • Preview images in the Shopping Experience editor show placeholder images
        • Saving the theme configuration takes a very long time
        • Simplified representation of the theme configuration
        • Some blocks were not configured sufficiently
        • Theme could not be assigned to sales channel
        • ThemeWare® cannot be updated
        • ThemeWare® update not available
        • Unable to compile theme
        • Unable to compile the theme...
        • Unable to deactivate or uninstall theme
        • Unable to find the theme
        • Undefined variable $...
    • Tips and tricks
      • Image optimization
      • Logo design tips
      • Recommended Extensions or Plugins
      • Technical terms explained
      • The top 10 tips
      • Useful Links
      • Ideales Vorgehen bei der Konfiguration
      • Konfigurationsfelder schnell finden
      • Wie du jede Farbe im Theme Manager findest
    • Shopware
      • Getting Started
        • System Requirements
      • Migration
      • Configuration
        • Shopping Experiences
          • Inserting images into text fields
        • Themes
          • Assign Shopware default theme
        • Extensions
          • Activate extensions
          • Deactivate extensions
          • Install extensions
          • Install extensions manually
          • Purchase extensions
          • Rate extensions
          • Remove extensions
          • Rent extensions
          • Return extensions
          • Uninstall extensions
          • Update extensions
          • Update extensions manually
        • Sales channel
          • Maintenance mode
        • Settings
          • Caches & Indexes
      • Cloud
      • Shopware Extensions
      • Tutorials
      • Update Guides
      • Support
      • Shopware Account
        • Linking up the Shopware Account with the shop
        • Moving Licenses in the Shopware Account to a different Domain
        • Registering the Shopware Account in the administration
        • Rename shop domain
        • Setting up the shop in the Shopware Account
        • Transfer licenses
  • More knowledge
    • ThemeWare® Extras
    • ThemeWare® Tools
      • ThemeWare® Customizing Plugin
      • ThemeWare® Customizing App (Cloud)
      • ThemeWare® Shopping Experiences Import (Plugin)
    • Lexicon
    • Accessibility
    • SEO & Pagespeed
      • PageSpeed Insights
  • Others
    • About ThemeWare®
    • ThemeWare® Demoshops
    • ThemeWare® Manual
    • ThemeWare® Video Tutorial
    • ThemeWare® Utilities
    • 🇩🇪Deutsch
Powered by GitBook
LogoLogo

ThemeWare®

  • About ThemeWare®
  • ThemeWare® Demoshops
  • ThemeWare® Service Portal
  • ThemeWare® Utilities

Informations

  • Legal notice
  • Newsletter
  • Privacy
  • Support

© 2024 by ThemeWare® | Made with 💙 by TC-Innovations GmbH

On this page
  • Advantages and disadvantages
  • 1. Integrating CSS code using the ThemeWare® configuration
  • 2. Integrating CSS code with external CSS file
  • 3. Integrating individual SCSS code (for experienced users)
  • 1. Integrating CSS code
  • 1.1) Integrating individual CSS code with snippets
  • 1.2) Integrating individual CSS code with configuration field
  • 2. Integrating CSS code with external CSS file
  • 2.1) Creating and editing a CSS file on the server
  • 2.2) Embedding a CSS file with ThemeWare®
  • 3. Integrating SCSS code (for experienced users)
  • Additional ThemeWare® knowledge
  • Delimitation of customizations
  • Tips
  • CSS hierarchy

Was this helpful?

  1. Knowledge Base
  2. Tutorials
  3. Individual customizations

Individual customizations by means of CSS

In this article you will discover how to perform individual customizations using CSS with ThemeWare®

With ThemeWare® you have got several options to add your own CSS styling to your shop. Depending on what you want to change and how extensive the modifications are, you choose the method that suits you best.

Tip: Creating a ThemeWare® duplicate is not necessary for CSS customizations.

Please note that custom code is not automatically compressed. It is best to compress your custom code manually before embedding it.

Note: Custom CSS code is not automatically compressed. It is best to compress your code manually.

Before we talk about embedding CSS code, we would like to point out that you should never edit original Shopware files or extensions (plugins, apps or themes). This can lead to various problems.

Attention: Do not edit Shopware files or files of any extension (plugins, apps or themes).

In order to make it as easy as possible for you to decide which way to go, we have listed the advantages and disadvantages of each:

Advantages and disadvantages

1. Integrating CSS code using the ThemeWare® configuration

Using the ThemeWare® configuration, it is possible to deposit small CSS adjustments quickly and easily. This code is not compressed and only CSS syntax is possible, however this is the easiest way for beginners.

1.1) Integrating CSS code with snippets

  • Advantages

    • fast procedure (via the Shopware 6 snippet management)

  • Disadvantages

    • outdated method

    • only CSS syntax possible

    • CSS code is not compressed automatically

1.2) Integrating CSS code with configuration field

  • Advantages

    • quickest procedure (using the ThemeWare® configuration)

    • recommended method

  • Disadvantages

    • only CSS syntax possible

    • CSS code is not compressed automatically

2. Integrating CSS code with external CSS file

The ThemeWare® configuration also offers you the option to include an external file via a URL. This way, a file which is available via a CDN (Content Delivery Network) can also be integrated.

  • Advantages

    • external file integrable

  • Disadvantages

    • only CSS syntax possible

    • CSS code is not compressed automatically

    • only limited possible in the Shopware 6 Cloud

3. Integrating individual SCSS code (for experienced users)

Alternatively, you may use our free "ThemeWare® Customizing Plugin" (self-managed) or the "ThemeWare® Customizing App" (Cloud) for the integration of individual customizations and your own files.

  • Advantages

    • professional approach

    • SCSS syntax possible

    • SCSS variables possible

    • SCSS features possible

    • SCSS code will be compressed automatically

  • Disadvantages

    • rather for experienced users

    • only possible using an external extension

1. Integrating CSS code

1.1) Integrating individual CSS code with snippets

Place the desired CSS code in the snippet "twt.custom.css" and activate the following configuration field: Tab "Others" => Block "Deprecated" => field "Individual CSS code (snippet)".

Important: This configuration was a workaround until option 1.2 was possible. The configuration is deprecated and is no longer recommended by us and will be removed with a later update.

1.2) Integrating individual CSS code with configuration field

Enter the desired CSS code in the following configuration field: Tab "Others" => Block "Expert settings" => Section "Individual code" => Field "Individual CSS code".

The content of the configuration field is added directly in a <style> Tag in the "head" of the HTML page. Just enter the desired CSS code here.

Example:

.my-class { color: #000000; }

Tip: To apply the "Expert settings" in the storefront, please activate "Expert mode" and deactivate the "Debug mode" of ThemeWare®:

  • Tab "Others" => Block "Expert settings" => Expert mode

  • Expert mode

  • Debug mode

2. Integrating CSS code with external CSS file

To deposit a file locally on your server and integrate it into the storefront, please proceed as follows:

2.1) Creating and editing a CSS file on the server

  1. Log in to your server via FTP and switch to file "css". File path: "public/css/"

  2. Create the file "styles.css".

  3. Deposit your CSS code in file "styles.css".

  4. Save the modification of the file "styles.css" and upload it again if necessary.

2.2) Embedding a CSS file with ThemeWare®

  1. Open ThemeWare® in the Theme Manager and switch to the Tab "Others" => Block "Expert settings" => Section "CSS file"

  2. Enter the path to the "styles.css" in the field "CSS file". (e.g. "yourshop.de/css/styles.css")

  3. Select the option "Yes" in the field "Load CSS file".

  4. Save the settings so that the current theme will be compiled and changes will take effect in the storefront.

Note: Access to external files (files on a different domain) is not recommended, see "Cross-Origin Resource Sharing".

3. Integrating SCSS code (for experienced users)

Please find a detailed instruction in the article:


Additional ThemeWare® knowledge

Delimitation of customizations

Customisation for a specific Sales Channel

If an CSS customisation is only relevant for a specific Sales Channel, you have the option of restricting your customisation via our ThemeWare® configuration with the "Body class".

To do this, enter a unique name for this Sales Channel (e.g.: myshopname) in the configuration of the corresponding theme (or theme duplicate) for the corresponding Sales Channel under Tab "Others" => Block "Expert settings" => Section "Individual CSS class" => Field "Body class".

This name can then be used for SCSS checks due to its position in the HTML body.

// Customisation for the Sales Channel with the class "myshopname"
.myshopname h1 {
    // Customization...
}

Customisation for a specific page (category)

If an CSS customisation is only relevant for a specific page, you have the option of restricting your customisation via the ThemeWare® custom field "Body class".

To do this, enter a unique name for this Sales Channel (e.g.: myshopname) in the configuration of the corresponding theme (or theme duplicate) for the corresponding Sales Channel under Tab "Others" => Block "Expert settings" => Section "Individual CSS class" => Field "Body class".

To do this, enter a unique name for this Sales Channel (e.g.: myshopname) in the custom field ‘Body class’ of the corresponding page (category) in the Tab "General" => Block "Additional fields" => Tab "Categories (ThemeWare® ...)" => Custom field "Body class" .

This name can then be used for SCSS checks due to its position in the HTML body.

// Customisation for the category with the class "myshopname"
.myshopname h1 {
    // Customization...
}

Tips

CSS hierarchy

You can easily adjust the CSS hierarchy when overwriting CSS/SCSS styles with the "Body class" in the ThemeWare® configuration. This allows you to avoid using !important statements.

You can find more information about this in the following tutorial:

PreviousIndividual customizationsNextIndividual customizations by means of SCSS

Last updated 5 months ago

Was this helpful?

Currently, the most advanced way to integrate SCSS code is to use a separate extension. There are special extensions (plugins or apps) for this in the .

Shopware Community Store
Individual customizations by means of SCSS
CSS hierarchy