inhouse
Member
Posted 6 months ago #
I'm using the Weather Forecast WP Wunderground plugin in my header and need smaller images. I created my own set of images 30px instead of the default 50px, but I now see that the image size is built in to the HTML. Ho can I override the image size? I don't even see any plugin files to hack even as a last resort. There's no class or id associated with the image so I can't override size it with CSS. Am I wrong? Other than this, it's a perfect plugin.
<td align="center" class="wp_wunderground_clear"><img width="50" height="50" style="display: block;" alt="It is forcast to be Clear at 10:00 PM EST on November 09, 2011" src="../../../../images/clear.gif"><div class="wp_wund_conditions">Clear</div><div class="temp"><span class="temphigh"><a target="_blank" href="#">72° F</a></span></div></td>
http://wordpress.org/extend/plugins/wunderground/
inhouse
Member
Posted 6 months ago #
Is it possible to do anything with the modifications to functions.php and add an image size mod? I used the suggested modification to use my own set of images:
add_action( 'wp_print_styles', 'bp_dtheme_enqueue_styles' );
endif;
add_filter('wp_wunderground_forecast_icon', 'use_custom_wunderground_icons');
function use_custom_wunderground_icons($content=null) {
$myIconFolder = 'http://mysite.com/images/';
$myFileType = '.gif';
$content = preg_replace('/http\:\/\/icons\-ecast\.wxug\.com\/i\/c\/[a-z]\/(.*?)\.gif/ism', $myIconFolder.'$1'.$myFileType, $content);
return $content;
}
inhouse
Member
Posted 6 months ago #
Nevermind, I switched to wp-forecast which does not specify the image size, so I can use custom icons of any size.