Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

javascript not working in widget in wordpress


  #1  
Old May 1, 2015, 09:31 PM
vj78
 
1 posts · May 2015
i have the javascript that is working in html file.

But it does not work in widget.



-----

<script type="text/javascript">
var paragraph1 = '[awesome-weather location="Chelsea" units="F" size="tall" forecast_days="3" custom_bg_color="grey" inline_style="width: 150px; margin: 0px; float: left;"]'
var paragraph2 = '[awesome-weather location="Howell" units="F" size="tall" forecast_days="3" custom_bg_color="grey" inline_style="width: 150px; margin: 0px; float: left;"]'
var paragraph3 = '[awesome-weather location="spring arbor" units="F" size="tall" forecast_days="3" custom_bg_color="grey" inline_style="width: 150px; margin: 0px; float: left;"]'


</script>
<p id="demo"></p>

<script type="text/javascript">
var step = 1;


function slideit() {
document.getElementById("demo").innerHTML = eval("paragraph" + step );

if (step < 3)
step++;
else
step = 1;
setTimeout("slideit()", 2500);
}


slideit();



</script>
  #2  
Old May 2, 2015, 04:18 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
1) what version of atahualpa and wp?
2) what type of widget are you using?
3) have you disabled all plugins?
4) have you tried swapping to another theme to see if it works?
5) have you tried googling 'Wordpress jscript widget'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
javascript widget

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Rotate header images with Javascript - not working in 3.6.7 ? Firebird Header configuration & styling 1 Aug 26, 2011 10:27 PM
[SOLVED] Custom Javascript/jQuery Popup not working in Atahualpa. Factorfiction Page & Category Menu Bars 1 Jan 30, 2011 02:20 PM
[SOLVED] javascript in widget not working Emanuele Sidebars & Widgets 12 May 24, 2010 03:14 PM
[SOLVED] Javascript not working in widget sidebar marj318 Sidebars & Widgets 4 Apr 30, 2010 05:59 AM
WP Menu Manager javascript not working? devarah Plugins & Atahualpa 1 Feb 7, 2010 05:37 PM


All times are GMT -6. The time now is 10:22 PM.


Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.