[wp-hackers] Widget custom CSS

Moya, Eddie emoya at tribune.com
Tue Nov 2 21:29:10 UTC 2010


Use wp_enqueue_style(), change the handle to whatever optional stylesheet the user has chosen.
http://codex.wordpress.org/Function_Reference/wp_enqueue_style

--
Eddie Moya
Applications Developer
Tribune Technology



On 11/2/10 3:12 PM, "Jeff Rose" <mirepup at gmail.com> wrote:

Just curious if this is even possible:

I have a widget that I'd like to allow the user to choose customization in.
This would require loading a different CSS depending on which set of
customizations they choose. There are 6 or 8 possible options.

How can I load ONLY the correct CSS chosen by the user? Would this be better
set in the plugin options so I can load it from there? Can a widget do
enqueue_styles properly?

--
Jeff Rose
_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers




More information about the wp-hackers mailing list