SamHodges
Forum Replies Created
-
Forum: Hacks
In reply to: I have a custom wp-login.php – how do I turn it into a plugin?Check this out, might be of use for you…
http://www.redicedesigns.com/blog/2010/tutorials/creating-a-custom-wordpress-log-in-screen/
As far as i am aware though you can only change the CSS of login page and im guessing you have edited it further than this.
Forum: Hacks
In reply to: Expected T_Function on add_actionSorry to bump, anyone got an idea… i know i’ve done something stupid and its incredibly frustrating 🙂
Forum: Hacks
In reply to: JavaScript not rendering in custom widgetVery special indeed, that function does solve it!
Incredibly rookie case sensativity mistake!
Forum: Hacks
In reply to: JavaScript not rendering in custom widgetThanks, i actually came up witht hat answer myself after a little more digging. I get the concept but im guessing my execution is an orderof magnitue out… Because the if statement has several other else’s attached i have to load the url of the JS dynamically so i defined a function to decide what to load after it has decided which type to call. After that i pass that in then try and echo out the JS after, im guessing this is not the correct way of doing things?
function load_url(){ wp_enqueue_script( load_url, $widget_url); } if( $type == 'skyscraper'){ $widget_url = 'http://www.click-trail.co.uk/feed-distribution/lastminute/dp/uk/widgets/ws1/6.php?pid=4654843&fpwid=W0bc2803a495'; add_action('wp_enque_scripts', 'load_url'); $widget = '<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>'; } echo $widget;Sorry im very special..
Forum: Hacks
In reply to: JavaScript not rendering in custom widgetDont suppose anyone has a solution r.e. this? Im guessing it must be a relativley easy problem but i cant seem to find the answer anywhere…
Sam