WordPress.org

Support

Support » Themes and Templates » Can you set different color fonts for different categories?

Can you set different color fonts for different categories?

  • Hello is it possible to select different color fonts for different categories?

    My navigation is set up as categories so I would need it to not affect the Navigation. The posts however I would love to change.. For example…. If I have breakfast and desserts under different categories, The titles for each would be a different color.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, iselaespana!

    I guess, now a days, everything is possible 🙂
    Please, let me know, have you created a child theme of your site for this type of customization?

    If no, then please checkout this link for creating a child theme.

    Secondly, may I know the link your website?

    You can make different template files for your categories, and change the classes to change the colors.
    http://codex.wordpress.org/Category_Templates

    HELLOOOO,

    🙂

    This is my website… I do have a child theme.

    http://www.amexicaninthekitchen.com

    sacredpath

    @sacredpath

    Automattic Happiness Engineer

    If you look at the source code for one of your categories, such as Desserts, in the body tag you will see one of the classes is the category ID such as:

    category-10

    What you will want to do to set colors for whatever element, would be to precede the main selector with the category ID class such as this and then edit the hex color code as you desire:

    .category-10 #content .entry-title {
    color: #1C204D;
    }

    This should affect the colors of the post titles ONLY on the categories page.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can you set different color fonts for different categories?’ is closed to new replies.