[Resolved] Content Colors

Home Forums Support [Resolved] Content Colors

Home Forums Support Content Colors

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #230860
    Andreas

    Hi to All,

    is there a way to use different content colors depending on the category?
    I’m not very familiar with CSS

    Thanks
    Andreas

    #230866
    Paul

    Yes you can. You will find your site has classes based on your category names in the <body> and <article> sections. If your category was named “french food”, then you would use the class .category-french-food to make color changes.

    As an example, the following would make any posts categorized under “french food” have red paragraph text:

    .category-french-food p{
    color: #dc1028;
    }
    #230872
    Andreas

    Hi Paul,

    that works… so easy

    Great!

    Thank you so much
    Andreas

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