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

Color-coding blog posts.


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,


Share this post

Link to post

4 answers to this question

Recommended Posts

  • 0

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 


Edited by derricksrandomviews

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