WordPress.org

Ready to get started?Download WordPress

Forums

WP Google Weather
[resolved] FIX for widget icons (16 posts)

  1. klynam
    Member
    Posted 2 years ago #

    If your WP Google Weather widget icons are missing, here is my fix...

    1. Login to admin
    2. Plugins > Editor > WP Google Weather > wp-google-weather.php
    3. Change all (4) instance of this...

    <img src="http://www.google.com'.$conditions

    to THIS...

    <img src="'.$conditions

    Basically, you're just removing the hard coded call to Google.com from the IMG source URL's. Apparently that is no longer needed.

    Worked for me, your mileage may vary...

    http://wordpress.org/extend/plugins/wp-google-weather/

  2. mediaseth
    Member
    Posted 2 years ago #

    Thanks! It worked, but I got different-looking icons as a result that aren't as nice. Did google just change them?

  3. klynam
    Member
    Posted 2 years ago #

    Yep - I noticed the icon changes too. We'll need someone more in tune w/ the plugin to get us through that...

  4. news reporter
    Member
    Posted 2 years ago #

    thank you so so so much for offering this! and thanks mediaseth for confirming it worked before i attempted it.

    it worked for me too.

    fyi, reading a bunch of comments on the google gadget, it seems a ton of people hate the new icons, but it is something google changed.

  5. malistudio
    Member
    Posted 2 years ago #

    Works! ... see the result http://www.radioslavonija.hr/ ... Thank you.

  6. bonidono
    Member
    Posted 2 years ago #

    thanks for the advice.

    I still cannot show the 'current' image. the other 3 days are good with the <img src="'.$conditions change. any help would be very appreciated. thanks. francis

  7. bonidono
    Member
    Posted 2 years ago #

    I would like to amend my previous post to add that the google weather plugin works fine in a page or a post but the current weather icon is missing in a sidebar or footer widget. I did add

    add_filter('widget_text', 'do_shortcode');

    for shortcode functionality in those areas. courtesy of:

    http://digwp.com/2010/03/shortcodes-in-widgets/

    again, thanks for any help!
    francis

  8. klynam
    Member
    Posted 2 years ago #

    Dunno bonidono...mine work fine in a sidebar w/ the changes spec'd in the op. Maybe your add_filter messed something up.

    Also...

    I found the "old" style Google weather icons here:

    http://www.google.com/ig/images/weather/chance_of_snow.gif

    But I don't know how/where to change the plug-in code to reference the correct directory. Any ideas???

  9. tinna01
    Member
    Posted 2 years ago #

    it doesn`t work any more...why???

  10. Darko Mitrovic
    Member
    Posted 2 years ago #

    FIX no longer valid. Google again change somtehing :)

    1. Login to admin
    2. Plugins > Editor > WP Google Weather > wp-google-weather.php
    3. Change all (4) instance of this...

    <img src="'.$conditions

    to THIS...

    <img src="http://www.google.com'.$conditions

  11. news reporter
    Member
    Posted 2 years ago #

    thanks. mine just went wacko again this morning. i will try this. will check back to hear / confirm it works for others! thank you again.

  12. mediaseth
    Member
    Posted 2 years ago #

    Is there any way just to get new code from google? Has anyone tried un-installing and re-installing the plugin?

  13. tinna01
    Member
    Posted 2 years ago #

    Darko-hvala ;-)

  14. news reporter
    Member
    Posted 2 years ago #

    ok, that works.

    it looks like it gets the old, colorful, pics back. thank you!

  15. klynam
    Member
    Posted 2 years ago #

    Excellent - I changed the code back (to original) and it looks like we're back where we were before everything wacked out.

    I'll mark this resolved (but keep it in the back of your mind just in case...not that Google changes things often. LOL)

  16. bonidono
    Member
    Posted 2 years ago #

    thanks to everyone who contributed here!

    francis

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic