what i am trying to do is fix this validation error 'Element link is missing required attribute property.'

that is occurring because the style sheet isn't in the head. what i wanted to do was use the wp_head action to place it into the header but as soon as i add the code to the widget i have the javascript breaks completely so i dont know how to add a style to the head?

Hi, that is what i originally had but because it wasn't adding it to the head w3c validator was throwing an error thats why i was trying to use the action
–
asaundersOct 16 '13 at 16:18

Is the script not being added? Or is it being added to the footer? (Side note: W3C validator isn't gospel ;) )
–
Chip BennettOct 16 '13 at 16:19

it is being added to the footer. i know its not gospel :) but i like all my sites being validated if there is something i can do to make it validate rather than saying thats just a issue with wordpress. if that makes any sense?
–
asaundersOct 16 '13 at 16:23

I wouldn't worry about it too much in this case. But if you think about it: by the time the Widget is parsed, you're already into the template, past the call to wp_head() that fires the wp_head (and subordinate) actions. So, an add_action( 'wp_head', $callback ) would be too late at that point.
–
Chip BennettOct 16 '13 at 16:27

ah okay. fair enough. I will accept your answer as you have explained what i was doing before was correct and have helped me understand why i cant use that action inside a widget :). thanks
–
asaundersOct 16 '13 at 16:29