Jump to content

Color-coding blog posts.

Recommended Posts

Posted

Site URL: https://www.greenvibe.world/

Hi, I am designing a website in which I would like to color code the titles of blog posts. For example: a certain category of posts will be colored green, and another category will be colored red, and so on.. I am not able to do a simple markdown within the title of the post. Is what I want to accomplish possible? If so, would anyone be able to help me figure out this problem?

Thank you in advanced,

Jahranger

  • Replies 6
  • Views 685
  • Created
  • Last Reply
Posted

You will need a css color code for every post you want to change.  You may be able to put it in a markdown or code block of the post itself never tried it but it won't hurt to experiment. The first part changes title color, the second part changes link color to the post. You can't put this in custom css unless you include the item number of each post. 

.post-inner-content .entry-title a {
    color: #fff;
}

body.single .post-inner-content a {
    color: #000;
}

choose or make a color here, copy and paste the #number 

https://www.hexcolortool.com/#000000

Posted

Thank you guys for the info and the help. I believe I am going to opt to make categories through the Squarespace feature rather than color coding. I appreciate your time and wish you well.

- Jah

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.