Jump to content

Font color in product description

Recommended Posts

Posted

I want to highlight one sentence in a product description by changing its color.  I cannot believe that in the text format box there is no standard options for changing color of text.  Just like there is right here where I am typing this!  I have now spent 3 hours trying to figure out how to do it with no luck at all.  I do not want to add a code block to the additional information area.  I want this to appear right next to the product image, not underneath.  There must be a way to do this?  This should be something quick and simple... I just don't get it.

I want my description to look like this: (which took me 1 second to do here)

Design size is 24" x 27" stitched 2 over 2 on 28 count fabric.

This is a digital file that will be emailed to you within 3 business days after purchase.

I want the second sentence to be red.  How do I do this?

Thank you.

  • Replies 15
  • Views 4k
  • Created
  • Last Reply
Posted

It may depend on the exact template you are using, but you would target the product description and set up italics to be red instead of italics in Custom CSS. Then when you write out your description, put what you want to be red in italics. So something like this in Design > Custom CSS

.ProductItem-details-excerpt em {
color: #990000 !important;
font-style: normal !important;
}

 

Posted

Thank you for your response.  I have yet to change anything in the CSS.  I have no experience with that.  I added what you typed there exactly and it didn't work.  I am guessing I have to have more code than that.

So I am guessing there is no easy way to do this...  something that should be a standard thing.

Thank you again.

Posted

@xstitchboutique sure thing. If you want to post the link to your site, someone may be able to give you the exact code and walk you through it. 

Posted

@xstitchboutique,

Try copying and pasting in the code above to Design > Custom CSS. Make sure you have all of it and that there is no error in the window.

Then, edit a product description and italicize the sentence you want to be in the red color. You won't see the red here.

Save it, then open up a new browser window and look at that product on the live site. The sentence you italicized will show up in red.

 

Posted

Thanks so much @xstitchboutique! Could you please vote up my solution (the arrow on top of the 0 on the left of the post) and like the post (bottom right thumbs up symbol)? That lets others know it was solved.

  • 4 months later...
Posted

@xstitchboutique try adding this code to Design > Custom CSS. Make sure you have all of it and that there is no error in the window.

Then, edit the product additional information and italicize the sentence you want to be in the red color. You won't see the red here.

Save it, then open up a new browser window and look at that product on the live site. The sentence you italicized will show up in red.

.ProductItem-additional em {
color: #990000 !important;
font-style: normal !important;
}

 

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.