<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Enable WordPress body class function in Thesis Theme'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sat, 18 Apr 2026 03:41:24 +0000</lastBuildDate>
    <item>
      <title>mehigh said on 24/Sep/2010</title>
      <link>https://snipplr.com/view/23229/enable-wordpress-body-class-function-in-thesis-theme</link>
      <description>&lt;p&gt;To get the native WP body_class function in Thesis v1.7, use the following code:&#13;
It gets the bodyclass array, and adds it to the $classes array the classes one by one. There might be other 'more efficient' solutions out there, but it works :)&#13;
&#13;
&#13;
    `function my_body_class( $classes ) {&#13;
    $bodyclasses = get_body_class();&#13;
    foreach ($bodyclasses as $bodyclass) {&#13;
    	$classes[] .= $bodyclass;&#13;
    } &#13;
    return $classes;    &#13;
    }&#13;
    add_filter('thesis_body_classes','my_body_class');`&lt;/p&gt;</description>
      <pubDate>Fri, 24 Sep 2010 04:26:10 UTC</pubDate>
      <guid>https://snipplr.com/view/23229/enable-wordpress-body-class-function-in-thesis-theme</guid>
    </item>
    <item>
      <title>mehigh said on 24/Sep/2010</title>
      <link>https://snipplr.com/view/23229/enable-wordpress-body-class-function-in-thesis-theme</link>
      <description>&lt;p&gt;Note - the above works on v1.8.&lt;/p&gt;</description>
      <pubDate>Fri, 24 Sep 2010 05:00:04 UTC</pubDate>
      <guid>https://snipplr.com/view/23229/enable-wordpress-body-class-function-in-thesis-theme</guid>
    </item>
  </channel>
</rss>
