admin管理员组文章数量:1122846
This is the example on the WordPress codex:
/*
* Theme Name: My Theme
* Author: Theme Author
* Text Domain: my-theme
* Domain Path: /languages
*/
Is it possible the for the directory be called "mytheme" or does it have to be "my-theme"?
This is the example on the WordPress codex:
/*
* Theme Name: My Theme
* Author: Theme Author
* Text Domain: my-theme
* Domain Path: /languages
*/
Is it possible the for the directory be called "mytheme" or does it have to be "my-theme"?
Share Improve this question asked Jan 18, 2019 at 12:18 BootUpBootUp 251 silver badge5 bronze badges1 Answer
Reset to default 0From https://developer.wordpress.org/themes/functionality/internationalization/
Themes that are hosted on WordPress.org the text domain must match the slug of your theme URL (wordpress.org/themes/). This is needed so that the translations from translate.wordpress.org work correctly.
The text domain name must use dashes and not underscores and be lowercase. For example, if the theme’s name My Theme is defined in the style.css or it is contained in a folder called my-theme the text domain should be my-theme.
本文标签: textdomainWhat is the correct naming procedure of text domaindirectory and theme name
版权声明:本文标题:textdomain - What is the correct naming procedure of text domain, directory and theme name? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281135a1926224.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论