[theme-reviewers] Theme text domain and function name prefix
Thomas from ThemeZee
contact at themezee.com
Sat Jul 27 16:34:18 UTC 2013
Okay I can see the point that the prefix should be consistent in a theme.
But it is also highly comfortable for theme developers with several themes
to be able to use the same function names in their themes. Since WordPress
only allows to use one theme at the same time there is no conflict at all.
And I'm using my shop name as prefix in all my themes, that was never a
problem in reviews so far.
What's about a combination of author and theme name for unique phrases like
the text domain?
function prefix: author-name_function
textdomain: author-name_theme-name_language
stylesheet: author-name_theme-name_stylesheet
Then there would be used a consistent prefix (the author name) in the whole
theme and the textdomain would also be unique.
2013/7/27 Srikanth Koneru <tskk79 at gmail.com>
> I was hoping theme shops with a bunch of themes can get same exemption as
> frameworks.
>
>
> On Sat, Jul 27, 2013 at 6:43 PM, Edward Caissie <edward.caissie at gmail.com>wrote:
>
>> I would still lean towards the general rule of thumb as Theme Name ~>
>> theme slug = prefix = textdomain to maintain a consistency within the
>> project's code.
>>
>> Edward Caissie
>> aka Cais.
>>
>>
>> On Sat, Jul 27, 2013 at 6:55 AM, Thomas from ThemeZee <
>> contact at themezee.com> wrote:
>>
>>> Author slug as function prefix should be fine. Beside the unique text
>>> domain the handle (name of stylesheet) used in wp_register_style should
>>> also be unique. Can cause some problems with child themes if you use the
>>> author slug there and the user has multiple themes of your theme shop
>>> installed.
>>>
>>>
>>> 2013/7/27 Emil Uzelac <emil at uzelac.me>
>>>
>>>> There you go :-) I was thinking that some special case Themes do that,
>>>> but I was wrong.
>>>> On Jul 27, 2013 3:06 AM, "Otto" <otto at ottodestruct.com> wrote:
>>>>
>>>>> Function prefix, sure. Text domain, no. This should be unique. Prefix
>>>>> the text domain if you like.
>>>>>
>>>>> -Otto
>>>>>
>>>>>
>>>>> On Sat, Jul 27, 2013 at 1:34 AM, Srikanth Koneru <tskk79 at gmail.com>
>>>>> wrote:
>>>>> > Can the text domain and function prefix be same for all my themes
>>>>> and can it
>>>>> > possibly be my theme shop name?
>>>>> > It will be easy to maintain themes and create new ones.
>>>>> >
>>>>> > _______________________________________________
>>>>> > theme-reviewers mailing list
>>>>> > theme-reviewers at lists.wordpress.org
>>>>> > http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>> >
>>>>> _______________________________________________
>>>>> theme-reviewers mailing list
>>>>> theme-reviewers at lists.wordpress.org
>>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>>
>>>>
>>>> _______________________________________________
>>>> theme-reviewers mailing list
>>>> theme-reviewers at lists.wordpress.org
>>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>>
>>>>
>>>
>>> _______________________________________________
>>> theme-reviewers mailing list
>>> theme-reviewers at lists.wordpress.org
>>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>>
>>>
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
> _______________________________________________
> 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/20130727/00460b13/attachment-0001.html>
More information about the theme-reviewers
mailing list