[theme-reviewers] $content_width question

Konstantin Kovshenin kovshenin at gmail.com
Wed Jun 18 11:05:10 UTC 2014


Technically it doesn't really matter. after_setup_theme runs right
after the functions.php file has been loaded, so declaring it in the
global scope is just as good. Make sure it's wrapped into an isset()
call though, so child themes can override the setting.

On Wed, Jun 18, 2014 at 3:01 PM, Ola Łączek <ola at bodera.com> wrote:
> Hello!
>
> I've got a question about $content_width. I remember reading somewhere that
> theme authors should include it in main setup function. Is that right? When
> I checked Twenty Fourteen it has $content_width declared outside setup
> function. I can't seem to find it the answer in the guidelines, so I would
> appreciate your help.
>
> Best regards,
> Ola
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>



-- 
Konstantin


More information about the theme-reviewers mailing list