WordPress.org

Support

Support » Themes and Templates » [Resolved] styling the body tag

[Resolved] styling the body tag

  • Hi Folks

    I am having a bit of trouble trying to get my head around the following, and was wondering if some can help or point me in the right direction.

    Basically, I have 5 different pages: Home, About, Portfolio, Contact and Blog.

    Each body tag in the original HTML document which I am transferring to wordpress has a different body class eg:

    (Home Page)
    <body home blog>

    (Portfolio Page)
    <body page page-work>

    (Contact Page)
    <body page page-contact-paul>

    How can I keep these original classes and change the <body class=”…”> for each different page?

    Would I need to do something in the functions.php file?

    Any help would be greatly appreciated! 🙂

    Thanks in advance
    Paul

    [closed as duplicate – continue with http://wordpress.org/support/topic/setting-a-body-class-name?replies=1 ]

  • The topic ‘[Resolved] styling the body tag’ is closed to new replies.
Skip to toolbar