WordPress.org

Ready to get started?Download WordPress

Forums

Custom Colors for Post Titles (2 posts)

  1. nhaims
    Member
    Posted 7 years ago #

    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.

  2. Doodlebee
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic