How can I add a weather widget?
-
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/ -
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:
-
-
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 :)
-
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 //–>
<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
-
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.
-
Thanks. Do YOU know such a e weather widget? I can search for it in google only.
Take care.
Anne -
- The topic ‘How can I add a weather widget?’ is closed to new replies.