• hi all,

    i’m trying, with no success, to use the add_action(‘wp_head’, ‘My_Header’) outside of a plugin, sure it doesn’t work but how to 🙂 ?

    I don’t want to write a plugin for this. The case : i look for day and month and for certain date i add javascript function to show scrolling pictures and a symbolic picture for the event. But i want to place this picture in particular place function of event. So i add rules in a stylesheet where all my pictures (for all year’s events) positions are stocked. Now, in my “switch case” i’d like to be able to add the call of that stylesheet in the header. I’ve tried to use add_action(‘wp_head’, ‘My_Header’) but apparently it only works for call with plugins… So does someone knows a simply way to do that ?

    TIA,

    Flegme.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you’ve written the code for the action all ready, just save it all together, put it in the plug-ins folder, activate it and that’s it.

    Thread Starter flegme

    (@flegme)

    Thanks niziol but the code is in my footer and i was “hopping” that there were another way that a call from plugin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding dynamicaly stylesheet with add_action(‘wp_head’,’…’)’ is closed to new replies.