[theme-reviewers] Double enqueuing script, style & google fonts

Emil Uzelac emil at uzelac.me
Tue May 13 12:27:07 UTC 2014


Including Stylesheets and Scripts
#<http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/#including-stylesheets-and-scripts>

   - Themes are *required* to enqueue all stylesheets and scripts, using
   wp_enqueue_style()<http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/Function_Reference/wp_enqueue_style>
   /wp_enqueue_script()<http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/Function_Reference/wp_enqueue_script>,
   and hooked into an appropriate hook via callback function, rather than
   hard-coding stylesheet/script links or tags in the template.
      - Themes are *required* to use the Theme-specific hook for
      admin-enqueued scripts/stylesheets, e.g.
      admin_print_scripts-appearance_page_$menu_slug
      - Themes are *recommended* to hook stylesheet and script enqueue
      callbacks into `wp_enqueue_scripts`
      - Themes may *optionally* link the default stylesheet (style.css)
      directly in the document head, or via wp_enqueue_style(). Whichever
      method is used, the default stylesheet must be referenced via
      get_stylesheet_uri()<http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/Function_Reference/get_stylesheet_uri>
   - Themes are *required* to use core-bundled scripts, if using such
   scripts



On Tue, May 13, 2014 at 2:58 AM, mudthemes support <contact at mudthemes.com>wrote:

> A question regarding enqueuing script, style & Google fonts. When
> enqueuing them in a theme, the handle prefix should be what?
>
> 1. JS Scripts and CSS files
> i) For publicly available libraries?
> ii) For custom created codes?
>
> 2. Google Fonts
> 1) When enqueued using <link> tag.
>
> Any suggestions, please?
> _______________________________________________
> 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/20140513/ce5bc525/attachment.html>


More information about the theme-reviewers mailing list