1. How to work with CSS
Every CSS code should begin with the term <template id="product-catalog-widget-styles"> in order to know that´s about the Product and Catalog Widget. Moreover, is this term responsible for the connection between CSS and HTML code.
<template id="product-catalog-widget-styles"> <style> </style> </template>
Then, depending on what exactly is to be edited, a term should be inserted below the first <style>. It is important that a dot . is placed in front of it and a curved bracket { behind it. In the next line, you can determine whether, for example, the color should be changed. Accordingly, the word color is inserted and a colon : behind it. After that, a hex color code or the color as a word (like green) can be defined.
Really important is to add a semicolon ; after the color. To complete this, a curved bracket } is used again. You can then insert further CSS codes, otherwise it ends with </style> again and the existing HTML code from the Regiondo Widget Editor. The term </template> is used to close the command. That´s it!
Important
- Alt Gr and 7 for {
- Alt Gr and 0 for }
2. Typical example of a CSS adjustment
styles-template-id="product-catalog-widget-styles" widget-id="d9c38076-5bbe-43c9-bce3-822500bc7c59"
2.1. Header in the Product "Booking"
.regiondo-booking-header {
color: #0275A4;
}2.2. Header in the Product "Title the offer"
.regiondo-product-header {
color: #0275A4;
}2.3. General Background of the Widget
.regiondo-catalog, .Re-c-MuiOutlinedInput-marginDense, .regiondo-list-product, .regiondo-product-details {
background-color: transparent;
}2.4. Hide the Regiondo logo in the Catalog view
.Re-c-MuiButton-label svg {
display:none ;
}2.5. Header in the Product "Description", "More information", "Venue"
.regiondo-widget{background-color: transparent;}
.regiondo-collapsible-header{
color: #0275A4;
}2.6. Header "Title the offer"
.regiondo-list-product-header{
color: #0275A4;
}2.7. HTML code from the Widget Editor
styles-template-id="product-catalog-widget-styles" widget-id="d9c38076-5bbe-43c9-bce3-822500bc7c59"
In order for CSS customization to work, a snippet must still be inserted in the HTML code from the widget editor.
The part styles-template-id="product-catalog-widget-styles" has to be added after creating the HTML-Code in the Widget Editor.
Example HTML-Code from Widget Editor:
widget-id="d9c38076-5bbe-43c9-bce3-822500bc7c59"
Add snippet after the
Result:
styles-template-id="product-catalog-widget-styles" widget-id="d9c38076-5bbe-43c9-bce3-822500bc7c59"
3. Other possible CSS adjustments
3.1. Button hover color effect in the Catalog view
.regiondo-list-product-button:hover {
background-color: green;
color: blue
}3.2. Offer image with rounded corners
.regiondo-list-product-image {
border-radius: 35% 35% 35% 35% / 35% 35% 35% 35%};3.3. Highlights replaced with images
.regiondo-product-highlights li::before {
content: "";
position: absolute;
background: url("https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSGJuXVE0Qvz70hWMErEJRjw_u_Jo6zunyhnXcD64cTwSQ6IblBY-bcD43P5MDVNIsYjlY&usqp=CAU") center no-repeat;
background-size: contain;
width: 25px;
height: 25px;
margin-left: -35px;
margin-top: -5px;
}