[Support request] colored categories

Home Forums Support [Support request] colored categories

Home Forums Support colored categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2519234
    aik

    Hi, I recently bought GP Premium. I immediately installed a ready theme, importing the demo site. in this the categories are colored, as in the picture. this doesn’t happen with the posts and categories that were in my blog before the theme import.

    How can I assign a color to my categories and make it appear both on the homepage and on the archive page?

    #2519240
    Fernando
    Customer Support

    Hi Aik,

    In Appearance > Customize > Additional CSS, there’s this code:

    body:not(.single) .post-term-item.term-business {
    	background-color: var(--business);
    }
    body:not(.single) .post-term-item.term-community {
    	background-color: var(--community);
    }
    body:not(.single) .post-term-item.term-education {
    	background-color: var(--education);
    }
    body:not(.single) .post-term-item.term-entertainment {
    	background-color: var(--entertainment);
    }
    body:not(.single) .post-term-item.term-lifestyle {
    	background-color: var(--lifestyle);
    }
    body:not(.single) .post-term-item.term-technology {
    	background-color: var(--technology);
    }
    body:not(.single) .post-term-item.term-travel {
    	background-color: var(--travel);
    }

    You can change a color of a term by adding such a code:

    body:not(.single) .post-term-item.term-YOUR-TERM-SLUG {
    	background-color: #ff0000;
    }

    Replace YOUR-TERM-SLUG with your term slug and assign a color code you prefer.

    #2519241
    aik

    thank you 1000 for the prompt reply

    #2519265
    Fernando
    Customer Support

    You’re welcome, Aik!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.