JavaScript not rendering in custom widget
-
Hi Guys,
I’ve been using wordpress now for a couple of years as a leech basically just consuming content, and i recently came up with an idea for a plugin related to my workplace… I am now trying to reproduce and advert widget basically which pulls in widgets generated by a 3rd party.
I have created a stement thatis supposed to throw out the JS if a statement is true, but i cant seem to make the JS render in my widget, the same code works in the HTML javascript adder widget but not mine… any ideas?
if( $type == 'skyscraper'){ $widget = '<div id="FusePress"><div id="widget-26-W0bc2803a495" style="overflow: visible;"></div><script language="javascript" type="text/javascript" src="http://www.click-trail.co.uk/feed-distribution/lastminute/dp/uk/widgets/ws1/6.php?pid=4654843&fpwid=W0bc2803a495"></script></div>'; }Thanks,
Sam
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘JavaScript not rendering in custom widget’ is closed to new replies.