<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Tag: wp-imagefit</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Tag: wp-imagefit</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 03:14:09 +0000</pubDate>

<item>
<title>SpencerLavery on "WP-Imagefit - Very easy to make work with non-hAtom-based themes (ie Default)"</title>
<link>http://wordpress.org/support/topic/152452#post-678559</link>
<pubDate>Fri, 18 Jan 2008 12:29:01 +0000</pubDate>
<dc:creator>SpencerLavery</dc:creator>
<guid isPermaLink="false">678559@http://wordpress.org/support/</guid>
<description>&#60;p&#62;First things first, ensure your posts are wrapped in a block element that has a class, ie the &#34;Default&#34; theme wraps each post in a DIV with a class of &#34;post&#34;.&#60;/p&#62;
&#60;p&#62;Open wp-imagefit.php and on line 20, change:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;jQuery(&#38;#39;.hentry&#38;#39;).imagefit();\n&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to&#60;/p&#62;
&#60;p&#62;&#60;code&#62;jQuery(&#38;#39;.post&#38;#39;).imagefit();\n&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Obviously replace &#34;.post&#34; with the class you used in your HTML. I've only tested this on a custom theme and the Defualt theme but it seems to work fine for me.&#60;/p&#62;
&#60;p&#62;Hope it helps other people.&#60;/p&#62;
&#60;p&#62;Alternatively, if you'd rather edit your theme than the plugin, simply edit your theme templates to wrap each post in a DIV with a class of &#34;hentry&#34;, ie.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php while (have_posts()) : the_post(); ?&#38;gt;
    &#38;lt;div class=&#38;quot;hentry&#38;quot;&#38;gt;
        &#38;lt;?php the_content(); ?&#38;gt;
    &#38;lt;/div&#38;gt;
&#38;lt;?php endwhile; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(Sidenote to plugin author - excellent plugin, thank you for making it. At some point you could rewrite this so that the plugin autmatically injects a DIV around each entry in the loop with a class of &#34;imagefit&#34; then call that in the jQuery instead. Limiting this to hAtom only themes seems unneccesary to me.)&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/wp-imagefit/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/wp-imagefit/&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
