所以我用主题检查插件从错误中测试了它们, 然后转到文本域问题, 但它返回了空值!这是因为!
REQUIRED: This theme text domain does not match the theme's slug. The text domain used: This theme's correct slug and text-domain is osiris-rathemes./*
Theme Name: osiris rathemes
Theme URI: https://themeforest.net/user/ra-themes/portfolioa
Author: Mohamed Said
Author URI: https://themeforest.net/user/ra-themes
Description: some dec
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osiris-rathemesThis theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
主题文件夹名称为文本域, style.css为文本域, 且不是空字符串
我想念任何事情吗?
#1【wordpress文本域问题】也许你需要在functions.php文件中加载主题textdomain。你的style.css文件看起来正确, 但是我不知道你的主题插件检查程序在做什么。
function osiris_rathemes_setup() {
load_theme_textdomain( 'osiris-rathemes', get_template_directory() . '/languages' );
}add_action( 'after_setup_theme', 'osiris_rathemes_setup' );
推荐阅读
- WordPress主题和插件集成
- WordPress模板X(更改内部的html)
- #yyds干货盘点#JavaScript数值转换-Number方法 举报
- Linux之more命令
- #yyds干货盘点#24张图攻克border-image
- 桌面虚拟化能给企业及个人带来什么价值,看完你就明白了
- #yyds干货盘点#--redis-2
- Go 语言入门很简单--技巧和窍门(Tips and Tricks)
- #yyds干货盘点#Spring源码三千问Bean的Scope有哪些(scope=request是什么原理?)