[theme-reviewers] $content_width question

Chip Bennett chip at chipbennett.net
Wed Jun 18 13:17:24 UTC 2014


No, this is not correct per the Guidelines, which require $content_width,
along with all other functional output, to be called within a callback
hooked into an appropriate hook.


On Wed, Jun 18, 2014 at 7:05 AM, Konstantin Kovshenin <kovshenin at gmail.com>
wrote:

> 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
> _______________________________________________
> 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/20140618/6f9a50c6/attachment.html>


More information about the theme-reviewers mailing list