Support » Plugin: Weather Underground » [Plugin: Weather Forecast – WP Wunderground] Smaller Images

  • Resolved InHouse


    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>

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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' );
    add_filter('wp_wunderground_forecast_icon', 'use_custom_wunderground_icons');
    function use_custom_wunderground_icons($content=null) { 
        $myIconFolder = '';
        $myFileType = '.gif';
        $content = preg_replace('/http\:\/\/icons\-ecast\.wxug\.com\/i\/c\/[a-z]\/(.*?)\.gif/ism', $myIconFolder.'$1'.$myFileType, $content);
        return $content;

    Nevermind, I switched to wp-forecast which does not specify the image size, so I can use custom icons of any size.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Weather Forecast – WP Wunderground] Smaller Images’ is closed to new replies.