WordPress.org

Forums

Change to in 2010 (4 posts)

  1. Dan Poynor
    Member
    Posted 4 years ago #

    I copied the 2010 theme and have started creating a new theme.

    How do I stop "blog" and "logged-in" from being added to the body class?

    Thanks,
    DAN

  2. Michael
    Forum Moderator
    Posted 4 years ago #

    body_class() uses a filter before it returns the output: 'body_class'

    you could theoretically use this to filter any unwanted class names from the output

    http://codex.wordpress.org/Plugin_API/Filter_Reference

  3. Michael
    Forum Moderator
    Posted 4 years ago #

    body_class() uses a filter before it returns the output: 'body_class'

    you could theoretically use this to filter any unwanted class names from the output

    http://codex.wordpress.org/Plugin_API/Filter_Reference

  4. Dan Poynor
    Member
    Posted 4 years ago #

    Much appreciated - makes sense.

    Sorry about the subject on this post. I guess the forum software doesn't allow html in the subject, plus it's not providing any warnings or error messages.

    DAN

Topic Closed

This topic has been closed to new replies.

About this Topic