<div dir="ltr">$content_width should also be defined inside of a callback, hooked into after_setup_theme. Just globalize it before you define it:<div><br></div><div style>global $content_width;</div><div style>$content_width = 640px;</div>
<div style><br></div><div style>Regards,</div><div style>Chip</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 29, 2012 at 6:38 PM, Shinra Web Holdings <span dir="ltr">&lt;<a href="mailto:shinrawebholdings@gmail.com" target="_blank">shinrawebholdings@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>Except the $content_width variable right? Or is that obsolete now?</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Dec 29, 2012 2:55 PM, &quot;Otto&quot; &lt;<a href="mailto:otto@ottodestruct.com" target="_blank">otto@ottodestruct.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Sat, Dec 29, 2012 at 2:28 PM, Shinra Web Holdings<br>
&lt;<a href="mailto:contact@shinraholdings.com" target="_blank">contact@shinraholdings.com</a>&gt; wrote:<br>
&gt; Is simply placing add_editor_style() in the functions.php file the best<br>
&gt; practice, or is it better to wrap it in a theme function and call that with<br>
&gt; add_action()?<br>
<br>
It is best to place that call inside a setup function which is then<br>
hooked to the &quot;after_setup_theme&quot; action hook.<br>
<br>
In general, nothing in the theme&#39;s functions.php file should be<br>
outside of a function other than the add_action or add_filter calls.<br>
<br>
-Otto<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">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>
</blockquote></div>
</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></div>