Studiopress and Javascript

lizmoz

Power Member
Joined
Oct 10, 2008
Messages
595
Reaction score
324
Hey,
anyone got aclue why javascript code won't run in text widgets or dedicated plugin widgets either in studiopress theme lifestyle?

Spent the whole night trying to embed a nice banner rotator there.. it's in js. Works perfectly with e.g. the default theme. Wordpress support forums claim this to be a feature of the newest wp that it won't allow loading js scriptf from other than the blog's own js folder but this isn't true as I have tested it with a brand new installation on another domain and it just works..

Any ideas why can't get js running with this theme? Also just embedding it directly to a post with any embed plugins - no show.

Really need this rotator there..Anyone?

cheers,
lizmoz
 
Nah, text widgets run js too. And I tried php widget plugin (the one that is supposed to be ok with flash etc too) but didn't help. Tried all the js embedding widgets too. Something more fishy with this theme going on I guess.
 
I think it works. Lifestyle theme is simple theme .. you can edit and hard code your js in there.
 
Yea I have absolutely no idea why it doesn't work.. should work from normal widgets as well..even see the right stuff in the page source but just shows blank where it should show my rotator which works on other wps of mine... ffffffffuuuuuuuuuuuu
 
Yea I have absolutely no idea why it doesn't work.. should work from normal widgets as well..even see the right stuff in the page source but just shows blank where it should show my rotator which works on other wps of mine... ffffffffuuuuuuuuuuuu
Is your rotator code working by itself?
 
Read up on XHTML and Javascript compatibility.

http://javascript.about.com/library/blxhtml.htm

This was my problem to one of my... sinister javascripts on a wordpress blog :D
 
Ok. Did my homeworks on the above tips, still couldn't figure it out. But this neat plugin did the job for me with a bit of extra work:
Code:
http://wordpress.org/extend/plugins/datafeedr-ads/

Just a tip!
 
Back
Top