Categories different background colours

26.02.2022 15:12
#1
Matt12
Joomshopping forum user no avatar
Name: Traudel
31.08.2021
Posts: 36
Quote
Categories different background colours

Hello,

I would like to convert a VirtueMart. shop with Joomla 3.xxx, which is still running at the moment, to Joomshopping with Joomla 4.xx.

I am currently testing all this on my localhost.
In the category display, the two main categories should be differentiated by colour, just like on the original website that is still running at the moment ( see: https://pflanzkartoffel-meyer.de/produktkatalog ).

But I only found one CSS-class for both main categories for the changes:
.sblock2.jshop_categ.category (see screenshot from localhost).
When I make changes, it shows the same for both, so only 1 colour.

How can I define one background colour on the right and another on the left? Is that possible?

Thanks a lot

Regards

Traudel
Categories different background colours


Joomla: 4.1.0
JoomShopping: 5.0.3
PHP: 7.4.23
 
26.02.2022 16:46
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25935
Quote
Aw: Categories different background colours

Example css

.sblock2.jshop_categ.category:first-child {
background-color: red;
}

.sblock2.jshop_categ.category:last-child{
...
}

 
28.02.2022 14:27
#3
Matt12
Joomshopping forum user no avatar
Name: Traudel
31.08.2021
Posts: 36
Quote
Aw: Categories different background colours

many thanks

it works...

Regards

Traudel

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.