Support » Plugins and Hacks » Awesome Weather Widget » Errors are added as HTML comments

Errors are added as HTML comments

Viewing 3 replies - 1 through 3 (of 3 total)
  • hello, my name is Ricardo, mail: comercial@needsolution.com.br

    please, help me, I’m from Brazil, how to translate your plugin to portuguese ?

    To: Hal Gatewood

    Re: Error

    In the event of receiving an error from the Weather source, instead of just clearing your display I would like to see you seriously consider preserving the previous display and adding something like “DELAYED” in the display. Just clearing the display is VERY confusing to users—and to developers as well!

    Plugin Author Hal Gatewood


    There has also been a filter available to hook into and display whatever you want when there is an error:

    function hg_awesome_weather_error( ) {
        return "Weather Data Coming Soon";
    add_filter( 'awesome_weather_error', 'hg_awesome_weather_error' );

    I think hiding the widget on error is probably the most user friendly solution unless you are a weather website, in which case I would advise you to use a different more robust weather widget. The weather widget is probably not the focus of the page and if it happens to not show one time, most users will probably not notice.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Errors are added as HTML comments’ is closed to new replies.
Skip to toolbar