How can I add a weather widget?

  • Author
    Posts
  • #743690

    madrasanne
    Member

    Hi, I want to integrate a weather widget of my current living place in the sidebar of my blog (madrasanne.com). I have found a free widget, but I cannot put the HTML-code in the widget sidebar. Could it be that my theme doesn’t allow other widget than given?

    Thanks you and I really hope you can help me.

    Anne
    Blog url: http://madrasanne.wordpress.com/

    #743803

    chrisrudzki
    Member

    Hi there,

    Users aren’t allowed to use Javascript and certain HTML tags here at WordPress.com for security reasons. It sounds like your code is being stripped out for this reason.

    Learn more about this here:
    http://en.support.wordpress.com/code/

    #743830

    madrasanne
    Member

    Hi Chris, thanks for your reply although it does not solver my problem….
    Greetings
    Ane

    #743843

    evarlese
    Staff

    Hi Anne,

    Would you mind copying and pasting the HTML code you’re trying to insert into your Text Widget? I’d be happy to take a closer look to let you know if it’s compatible with our system :)

    #743866

    madrasanne
    Member

    Hi evarlese,

    thank you for your reply. I am happy that somebody cares about my problem… So, here is the HTML-code. Actually, I am wondering since there is not mentioned that it works with Java only…

    <!– von wetter.info generierter Code //–>
    <div class=”wetterinfo” style=”background-color:#99FCFF;”>
    <link href=”http://wiga.t-online.de/wetter/webgadget/css/wetterboxen.css” rel=”stylesheet” type=”text/css” />
    <div id=”City” class=”Day”>Wetter Chennai</div>
    <div id=”wetterinfo_data”>
     
    </div>
    <script language=”javascript” src=”http://wiga.t-online.de/wetter/webgadget/getWetterinfoTemplate.php?uni=N9093558&sView=Small&Region=worldwide&sFormat=HTML&sSearch=false&Box=1″></script>
    <div class=”WetterLogo”><img alt=”Wetter” title=”Wetter” height=”15px” width=”65px” id=”wetterLogoBild” src=”http://wiga.t-online.de/wetter/webgadget/images/wetter_info.gif”/></div>
    </div>
    <!– von wetter.info generierter Code Ende//–>

    Thanks again.

    Anne

    #743883

    evarlese
    Staff

    Thanks for sharing! The reason that code won’t work in the Text Widget is because it includes JavaScript. We remove JavaScript from WordPress.com for security reasons.

    If you can find code for a weather widget that is purely HTML, then that would work with our system.

    #743885

    madrasanne
    Member

    Thanks. Do YOU know such a e weather widget? I can search for it in google only.

    Take care.
    Anne

    #743886

    madrasanne
    Member

    Hi evarlese,

    I have got help and the problem is solved. Thank you…

The topic ‘How can I add a weather widget?’ is closed to new replies.