Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

default thumpnail in sidebar not using thumpnail-Size [moved] #21

Open
zyml opened this Issue · 0 comments

1 participant

Melvin Lee
Melvin Lee
Owner

This is Issue 98 moved from a Google Code project.
Added by 2010-11-08T14:48:54.000Z by m...@nurfuerspam.de.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

The default thumpnail is shown in picture-size, not using the configured thumpnail-Size for Sidebar.

<b>What steps will reproduce the problem?</b>
1. post am article without an article image
2. setup the widget &quot;Tabbed Sidebar&quot; or &quot;Featured Stories&quot;

<b>What versions of WordPress and Arras Theme are you using?</b>
Wordpress 3.0.1
Arras 1.5.0.1


I took a look into the thumpnails.php and found the problem on Line 76. $empty_thumpnail ist not using width and height. In my installation I fixed it as below:

Move line 76 to line 102 (after $w and $h is set) and manipulate the img-src like this:
$empty_thumbnail = '<img src=&quot;' . get_bloginfo('template_directory') . '/library/timthumb.php?src=/images/thumbnail.png&amp;w=' . $w . '&amp;h=' . $h . '&amp;zc=1&quot; alt=&quot;' . get_the_excerpt() . '&quot; title=&quot;' . get_the_title() . '&quot; />';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.