我正在使用214主题创建一个子主题,并希望对索引进行更改。php,但当我复制索引时。php文件到子主题的目录并编辑它,它根本不会更改我的主题。我是做错了什么还是错过了什么?谢谢你的帮助
我的子主题样式表有以下代码:
/*
Theme Name: Twenty Fourteen Child
Theme URI: http://wordpress.org/themes/twentyfourteen
Description: Child theme - Ecuador Travel Agency Tours Site
Author: Sarah Wyatt
Author URI: http://www.onestopsolutionswebmasters.com/
Template: twentyfourteen
Version: 1.0
Tags:
*/
和下面的子主题函数代码。php:<?php
add_action( \'wp_enqueue_scripts\', \'theme_enqueue_styles\' );
function theme_enqueue_styles() {
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\')
);
}
?>