WordPress: add css or javascript to the head

How to add css or javascript to the head when working with shortcodes? You can use wp_head, but this wil be parsed before the shortcode. So, if the shortcode determines which script has to be added to the head we have to find a solution ourselves, because WordPress has no easy way of doing this.


Leave a Reply