WordPress.org

Ideas

Modify body class or ID


  1. Inactive

    I would like to be able to modify a class in the body tag of my WordPress header so that I can control styles for various categories. Does this exist?

    Posted: 12 years ago #
  2. Chris_K
    Inactive

    12345

    Have you checked out Category Templates?

    http://codex.wordpress.org/Category_Templates for more info

    Posted: 12 years ago #
  3. JeanPaulH
    Inactive

    The body class has been added to WordPress 2.8: Template Tags / body_class (recommended read: Nathan Rice - 2.8 and the body_class() function).

    For more customization on category (or tag) level I would recommend looking at Category Templates / Tag Templates (which may be named category-slug.php / tag-slug.php since WordPress 2.9).

    Posted: 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    7 Votes
  • Status

    This idea has been implemented

Tags