ThemeShaper Forums » Thematic


Two sites, same child theme, different body classes. Huh?

(5 posts)
  • Started 10 years ago by perryb
  • Latest reply from perryb
  • This topic is resolved



    Both these test sites have the latest trunk install of Thematic and identical child themes. The difference being that at the first link the body class comes out as expected as generated by Thematic:

    <body class="wordpress blogid-1 y2010 m09 d16 h21 singular slug-community-groups page pageid-25 page-author-perry page-parent page-comments-closed page-pings-closed loggedin windows firefox ff3">

    while the other site has the following body class (the Wordpress default body classes I think):

    <body class="home page page-id-58 page-template page-template-default logged-in class-name windows firefox ff3">

    Everything else seems to be working as expected - I can probably work with this but it bothers me that it isn't working as it should be.

    Any ideas anyone?

    Posted 10 years ago #
  2. Just to throw something else into the mix, another site I'm working on:

    This one does have all the expected body classes - the kicker is that the child theme is the one that I copied to the axistest site mentioned in my previous post.

    The only thing I can think of that may be influencing this is that the axistest site has a database copied from an existing Wordpress site which isn't based on Thematic. Might this be causing the discrepancy?

    Posted 10 years ago #
  3. HI perryb,

    No worries. There are changes to the latest svn that have to do with compliance to WP theme review. The first example you posted is using thematic's body class function the second example is using a filtered version of WP's body class function.

    For the second site add this to your child theme's functions.php:


    This will restore the original Thematic functions.


    Posted 10 years ago #
  4. Also look in the functions.php of the parent theme for more child theme definable constants. Check the comment blocks in there for more detail

    Posted 10 years ago #
  5. Nice one em hr that worked a treat, plus I just learned an important lesson about tinkering with the trunk!

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.