我想创建一个WordPress的儿童主题,并已访问以下网站:https://codex.wordpress.org/Child_Themes。wordpress儿童主题functions.php
在这个网站上,它说我必须创建两个文件,其中style.css清晰,我的问题是有关functions.php。它说,在某些时候,我要复制粘贴到新建functions.php文件下面的文字:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style($parent_style, get_template_directory_uri() . '/style.css');
wp_enqueue_style('child-style',
get_stylesheet_directory_uri() . '/style.css',
array($parent_style),
wp_get_theme()->get('Version')
);
}
add_action('wp_enqueue_scripts', 'my_theme_enqueue_styles');
?>
我不知道在这个PHP文件我必须做出修改,即在哪里我把名我的主题在功能上?
感谢,
纳文