[theme-reviewers] wp_enqueue_style

Chip Bennett chip at chipbennett.net
Fri Jun 3 10:44:21 UTC 2011


I see a few issues:

1) Styles should be enqueued and *hooked* in; front-end styles should be
hooked into 'wp_print_styles'.

2) 'MyStyle' is too generic of a name. This is another instance where
something should be theme-slug prefixed.

3) Is the URL an external resource? I can't readily imagine a viable reason
that a CSS file can't/shouldn't be bundled with the Theme.

Chip

On Fri, Jun 3, 2011 at 1:22 AM, Vicky Arulsingam <vicky.arulsingam at gmail.com
> wrote:

> Is is appropriate to use wp_enqueue_style() within the header.php?
> Example: <?php wp_enqueue_style('MyStyle', '
> http://domain.com/some-other-style.css'); ?>
>
> -----
> Vicky Arulsingam
>
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110603/38134f09/attachment.htm>


More information about the theme-reviewers mailing list