Your Ad Here
Home > Wordpress > Thumbnail bug in Arras theme

Thumbnail bug in Arras theme

February 26th, 2010 Leave a comment Go to comments

I’ve been playing around the with Arras WordPress theme version 1.3.6 – which I really like. You can apply an attribute of thumb with a value of an image URL. This will show an image in post preview on the main page – very nice. The layout has a configuration for showing/not showing post thumbnails in the actual posts. The config didn’t have any effect – clicking on the post showed the thumbnail regardless. I added this code to ThemeDir/library/filters.php starting at line 113:

 /* mjb mbelange */
if ( arras_get_option('single_thumbs') == '1' ) {
  $postheader .= '<div class="entry-photo"><img title="' . get_the_title() . \
   '" src="' . arras_get_thumbnail($w, $h) . '" alt="' . get_the_title() . '" /></div>';
}

After pouring through the PHP code, finding the bug and fixing it, of course I found this fix on the Arras forum. Oh well. Nothing like rolling your own to better understand the code.

Categories: Wordpress Tags:
  1. No comments yet.
  1. No trackbacks yet.