Re: How can I change the background colour of the information on the product card

Solved

How can I change the background colour of the information on the product card

Montique
Excursionist
37 1 9

I'm wondering how I can change the background colour for the product title & price only on the product card without affecting any other text on the website (such as the product page.)

 

Screenshot 2024-03-21 085917.png

(We will phase out the white backgrounds eventually and are using png for the grey background)

 

I have used the below code on the custom CSS section but it will not work, has anyone found a solution?

 

.card-information__wrapper>* {
color: #FFFFFF !important;
}

.card-information__wrapper>.price {
color: #FFFFFF !important;
}

 

Accepted Solution (1)
kazi
Shopify Partner
724 100 125

This is an accepted solution.

.product-card-wrapper .card__content {
padding: 0;
}

▶️ If you need more help with your Shopify store
Speed Optimization | Theme Customization ? ☎️ WhatsApp ✉️Email Skype: kof.bd

View solution in original post

Replies 6 (6)

kazi
Shopify Partner
724 100 125

Hello @Montique  can you share the store URL?

▶️ If you need more help with your Shopify store
Speed Optimization | Theme Customization ? ☎️ WhatsApp ✉️Email Skype: kof.bd

Montique
Excursionist
37 1 9
kazi
Shopify Partner
724 100 125

@Montique  go to assets > base.css put this css bottom of file

 

.product-card-wrapper .card__information {
background-color: #eee;
}

▶️ If you need more help with your Shopify store
Speed Optimization | Theme Customization ? ☎️ WhatsApp ✉️Email Skype: kof.bd

Montique
Excursionist
37 1 9

awesome thanks you - that's almost there 

 

there's still a border, can we remove this too?

Montique_0-1710980700856.png

 

kazi
Shopify Partner
724 100 125

This is an accepted solution.

.product-card-wrapper .card__content {
padding: 0;
}

▶️ If you need more help with your Shopify store
Speed Optimization | Theme Customization ? ☎️ WhatsApp ✉️Email Skype: kof.bd

Montique
Excursionist
37 1 9

many thanks for your help!