Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
JButler

Can you define categories with specific colours?

Question

For an events summary section, I would like to make different categories appear in specific colours under the event thumbnail. Is this possible? For example, 'Category A' will appear in green text, and 'Category B' will appear in red etc...

Thanks!

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

@JButler yes you can customize the style for category links, you'll need to copy the link/url and copy it to the code below. You can do this with blog categories or shop categories. 

/* Add this code to Design -> Custom CSS */

a[href="/shop?category=tumblers"] {
  color: red;
}

a[href="/shop?category=straws"] {
  color: blue;
}

Here's an example from another site with this code in place
image.thumb.png.cd0eaf57f876fa426a577019cc2b391b.png


Philadelphia, PA

Available for hire

Beyond Copy/Paste: Learn CSS for Squarespace Workshop

Chat/Message on FB Messenger for quickest responsehttps://m.me/dejaegherryan

 

Share this post


Link to post
  • 0

I think you can with CSS. If you share link to page where you inserted events summary. We can check easier.


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...