[wp-hackers] Enque CSS
Viper007Bond
viper at viper007bond.com
Sat Sep 27 03:40:29 GMT 2008
wp_enqueue_style(), parameters are the same as wp_enqueue_script() except
tag "screen" onto the end to specify the CSS medium.
On Fri, Sep 26, 2008 at 6:23 PM, Alex Hempton-Smith <
hempsworth at googlemail.com> wrote:
> Hi guys,
> I'm reworking an existing plugin to add extra features, and I thought I'd
> give it a spring clean whilst I'm at it - adding inline documentation and
> removing all the nasty tables from the admin panel. To make the options
> page
> look pretty again I'm obviously going to use some CSS, but I'd rather
> include a CSS file than have inline CSS out of personal preference.
>
> I know you can enque JS, and I was reading that you can also enque CSS
> files
> since 2.6 - is this the option for me? If so, how would I go about
> including
> 'style.css' on my options page, if the stylesheet resides in my plugins
> folder.
>
> Thanks,
>
> -- Alex
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
--
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers
mailing list