<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><h4 class="" id="including-stylesheets-and-scripts" style="padding-right:0px;padding-bottom:5px;padding-left:0px;font-weight:500;font-size:1.4em;border-width:0px;border-bottom-color:rgb(240,240,240);color:rgb(51,51,51);font-family:HelveticaNeue-Light,'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,sans-serif;line-height:1.2em;padding-top:50px!important">
Including Stylesheets and Scripts <a href="http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/#including-stylesheets-and-scripts" class="" style="text-decoration:none;color:rgb(52,120,227);font-weight:bold">#</a></h4>
<ul style="margin-left:18px;padding:0px;color:rgb(85,85,85);font-size:13px;line-height:18.200000762939453px;list-style-position:initial;border:0px none;overflow:visible;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;margin-top:10px!important;margin-right:0px!important;margin-bottom:22px!important">
<li style="margin:0px;padding:2px 0px 0px;border:0px none;overflow:visible">Themes are <strong>required</strong> to enqueue all stylesheets and scripts, using <code style="font-family:Monaco,Consolas,'Courier New',monospace;color:rgb(0,0,0);overflow:auto;background-color:rgb(241,241,241);font-size:1em"><a href="http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/Function_Reference/wp_enqueue_style" title="Function_Reference/wp_enqueue_style" style="text-decoration:none;color:rgb(52,120,227)">wp_enqueue_style()</a></code>/<code style="font-family:Monaco,Consolas,'Courier New',monospace;color:rgb(0,0,0);overflow:auto;background-color:rgb(241,241,241);font-size:1em"><a href="http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/Function_Reference/wp_enqueue_script" title="Function_Reference/wp_enqueue_script" style="text-decoration:none;color:rgb(52,120,227)">wp_enqueue_script()</a></code>, and hooked into an appropriate hook via callback function, rather than hard-coding stylesheet/script links or tags in the template.<ul style="margin-top:0px;margin-left:18px;padding:0px;font-size:1em;line-height:1.4em;list-style:disc;border:0px none;overflow:visible;margin-right:0px!important;margin-bottom:0px!important">
<li style="margin:0px;padding:2px 0px 0px;border:0px none;overflow:visible">Themes are <strong>required</strong> to use the Theme-specific hook for admin-enqueued scripts/stylesheets, e.g. admin_print_scripts-appearance_page_$menu_slug</li>
<li style="margin:0px;padding:2px 0px 0px;border:0px none;overflow:visible">Themes are <strong>recommended</strong> to hook stylesheet and script enqueue callbacks into `wp_enqueue_scripts`</li><li style="margin:0px;padding:2px 0px 0px;border:0px none;overflow:visible">
Themes may <strong>optionally</strong> link the default stylesheet (<code style="font-family:Monaco,Consolas,'Courier New',monospace;color:rgb(0,0,0);overflow:auto;background-color:rgb(241,241,241);font-size:1em">style.css</code>) directly in the document head, or via <code style="font-family:Monaco,Consolas,'Courier New',monospace;color:rgb(0,0,0);overflow:auto;background-color:rgb(241,241,241);font-size:1em">wp_enqueue_style()</code>. Whichever method is used, the default stylesheet must be referenced via <code style="font-family:Monaco,Consolas,'Courier New',monospace;color:rgb(0,0,0);overflow:auto;background-color:rgb(241,241,241);font-size:1em"><a href="http://make.wordpress.org/docs/theme-developer-handbook/releasing-your-theme/theme-review-guidelines/Function_Reference/get_stylesheet_uri" title="Function_Reference/get_stylesheet_uri" style="text-decoration:none;color:rgb(52,120,227)">get_stylesheet_uri()</a></code></li>
</ul></li><li style="margin:0px;padding:2px 0px 0px;border:0px none;overflow:visible">Themes are <strong>required</strong> to use core-bundled scripts, if using such scripts</li></ul></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Tue, May 13, 2014 at 2:58 AM, mudthemes support <span dir="ltr"><<a href="mailto:contact@mudthemes.com" target="_blank">contact@mudthemes.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A question regarding enqueuing script, style & Google fonts. When enqueuing them in a theme, the handle prefix should be what?<br>
<br>
1. JS Scripts and CSS files<br>
i) For publicly available libraries?<br>
ii) For custom created codes?<br>
<br>
2. Google Fonts<br>
1) When enqueued using <link> tag.<br>
<br>
Any suggestions, please?<br>
______________________________<u></u>_________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.<u></u>wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/<u></u>mailman/listinfo/theme-<u></u>reviewers</a><br>
</blockquote></div><br></div>