WordPress.org

Ready to get started?Download WordPress

Forums

Change to in 2010 (4 posts)

  1. danpoynor
    Member
    Posted 3 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. alchymyth
    The Sweeper & Moderator
    Posted 3 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. alchymyth
    The Sweeper & Moderator
    Posted 3 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. danpoynor
    Member
    Posted 3 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