child index.php does not overwrite parent index.php in twenty fourteen theme

Question

I am using the twenty fourteen theme to create a child theme and want to make changes to the index.php, but when I copy the index.php file to the child theme’s directory and edit it, it doesn’t change my theme at all.
Am I doing something wrong or missing something out?
Thanks for any help

screenshot of child theme folder with index.php

I have the following code to my child theme style sheet:

/*
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:
*/

And the following code to the child theme functions.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')
    );
}


?>
0
, Sarah Wyatt 5 months 0 Answers 67 views 0

Leave an answer