WordPress.org

Support

Support » How-To and Troubleshooting » Custom Colors for Post Titles

Custom Colors for Post Titles

  • Can I set the color of a post’s title manually depending on the post or even tie it to the category?

    I can manually tweak the internal text of a post via html, but don’t seem to have any control over the the post titles except its global CSS reference.

Viewing 1 replies (of 1 total)
  • Doodlebee
    Member

    @doodlebee

    Can I set the color of a post’s title manually depending on the post or even tie it to the category?

    Sure. You can start by reading this – that’ll get the category for the post, and keep it as a variable. You can then echo it into the post title as a class element, and then use the stylesheet to add colors to those classes.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Colors for Post Titles’ is closed to new replies.