Jump to content

Changing Title colour in Image Card

Recommended Posts

Good morning,

I am adding a new product to my website and I would like that the Title colour in the image card matches the colour of the new bottle (green instead of red).

Can you please help with the code that I need to add to the page advanced settings (or the website CSS design) so that I can do this?

Thank you in advance

Alex

Edited by D9NTE
Link to comment
4 hours ago, D9NTE said:

Site URL: https://www.9didante.com/en/products

Good morning,

I am adding a new product to my website and I would like that the Title colour in the image card matches the colour of the new bottle (green instead of red).

Can you please help with the code that I need to add to the page advanced settings (or the website CSS design) so that I can do this?

Thank you in advance

Alex

You can try adding to Home > Design > Custom Css

#block-yui_3_17_2_1_1608202075857_4609 h1 {
  color: green;
}

Let me know if it works properly on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing result

image.thumb.png.20aabe95c0ee4ea172655fbdd00db736.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
22 minutes ago, D9NTE said:

Hi bangank36

Thanks. However the text i want changes in colour is further down the page. It is the title "INFERNO" next to the bottle.

So you can replace my previous codes with 

#block-yui_3_17_2_1_1605969241945_22683 .image-title p:first-child {
  color: green;
}

 

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
10 minutes ago, D9NTE said:

Yes this is the one
 

Can you also see what is the right "yui" for changing the color of PURGATORIO further down the page?

 

To get the right id for setting CSS, you can use the extension Squarespace ID Finder

Here is how you can use it

Hope it can help your site

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
On 11/3/2021 at 12:16 AM, D9NTE said:

Hi again, can you help with the right command if the colour I want to change is the background of a button instead of the text?

 

Try this code

.Index-page--has-image h1 {
    color: rgba(184,0,0,.98);
    background-color: green;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.