所以我用主题检查插件测试我的错误 并去文本域问题,但它返回一个空值!这是任何自从!!
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-rathemes
This 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有文本域,而不是空字符串
我想念任何事情!
答案 0 :(得分:0)
Maybe you need to load the theme textdomain in the functions.php file. Your style.css file looks correct but I don't know what your theme plugin checker is doing..
function osiris_rathemes_setup() {
load_theme_textdomain( 'osiris-rathemes', get_template_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'osiris_rathemes_setup' );