<div dir="ltr">Thanks. <div><br></div><div>I was thinking this kind of way of loading .min file for parent theme.</div><div><br></div><div><div>/**</div><div> * The suffix to use for scripts.</div><div> */</div><div>if ( ( defined( 'SCRIPT_DEBUG' ) && true === SCRIPT_DEBUG ) ) {</div>
<div><span class="" style="white-space:pre"> </span>define( 'THEME_SUFFIX', '' );</div><div>} else {</div><div><span class="" style="white-space:pre"> </span>define( 'THEME_SUFFIX', '.min' );</div>
<div>}</div></div><div><br></div><div><br></div><div><div><span class="" style="white-space:pre"> </span>/* Enqueue parent theme styles. */</div><div><span class="" style="white-space:pre"> </span>wp_enqueue_style( 'theme-style', trailingslashit( get_template_directory_uri() ) . 'style' . THEME_SUFFIX . '.css', array(), THEME_VERSION );</div>
<div><span class="" style="white-space:pre"> </span></div><div><span class="" style="white-space:pre"> </span>/* Enqueue child theme styles. */</div><div><span class="" style="white-space:pre"> </span>if ( is_child_theme() ) {</div>
<div><span class="" style="white-space:pre"> </span>wp_enqueue_style( 'theme-child-style', get_stylesheet_uri(), array(), null );</div><div><span class="" style="white-space:pre"> </span>}</div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On 1 August 2014 21:03, Emil Uzelac <span dir="ltr"><<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It should be good, I have not find any issues with that. Not sure what others think.<div class="HOEnZb"><div class="h5"><span></span><br><br>On Friday, August 1, 2014, Sami Keijonen <<a href="mailto:sami.keijonen@foxnet.fi" target="_blank">sami.keijonen@foxnet.fi</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Emil, is you example loading parent and child theme style.css allowed in .org? It's seems handy way of loading parent theme's style.min.css file.<div class="gmail_extra">
<br><br><div class="gmail_quote">
On 16 July 2014 22:36, Emil Uzelac <span dir="ltr"><<a>emil@uzelac.me</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div style="font-family:arial,helvetica,sans-serif">Empties are ugly and not really needed. </div><div style="font-family:arial,helvetica,sans-serif"><br></div><div style="font-family:arial,helvetica,sans-serif">
This is what I do for my clients:</div><div style="font-family:arial,helvetica,sans-serif"><br></div><div><div><font face="arial, helvetica, sans-serif"> // Parent theme style.</font></div>
<div><font face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap"> </span>wp_enqueue_style( 'my-style', get_template_directory_uri() . '/style.css', array(), null );</font></div>
<div><span style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif"> </font></span></div><div><font face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap"> </span>// Child theme style.<span style="white-space:pre-wrap"> </span></font></div>
<div><font face="arial, helvetica, sans-serif"> if ( is_child_theme() ) {</font></div><div><font face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap"> </span>wp_enqueue_style( 'my-child-style', get_stylesheet_uri(), array(), null );</font></div>
<div><font face="arial, helvetica, sans-serif"><span style="white-space:pre-wrap"> </span>}</font></div></div><div style="font-family:arial,helvetica,sans-serif"><br></div>
<div style="font-family:arial,helvetica,sans-serif">Parent style.css remains at the usual place and when child is active it will add it's own stylesheet :)</div><div style="font-family:arial,helvetica,sans-serif">
<br></div><div style="font-family:arial,helvetica,sans-serif">And of course no @imports either ;)</div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div><div dir="ltr"><div><div><div><br></div></div></div></div>
<br></div></div><div>_______________________________________________<br>
theme-reviewers mailing list<br>
<a>theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></div></blockquote></div><br></div>
<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a>theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Sami Keijonen<br>Fox Holding Oy<br><a>sami.keijonen@foxnet.fi</a><br>
<a href="http://foxnet.fi" target="_blank">foxnet.fi</a><div>
<a href="http://foxnet-themes.fi" target="_blank">foxnet-themes.fi</a></div></div>
</div></div>
</blockquote>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Sami Keijonen<br>Fox Holding Oy<br><a href="mailto:sami.keijonen@foxnet.fi" target="_blank">sami.keijonen@foxnet.fi</a><br><a href="http://foxnet.fi" target="_blank">foxnet.fi</a><div>
<a href="http://foxnet-themes.fi" target="_blank">foxnet-themes.fi</a></div></div>
</div>