I made zip files of functions.php and style.css in the child themes folder. In the functions.php I copy and pasted:
<?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’ );
?>
and in the style.css I put:
/*
Theme Name: Illdy Child
Theme URI: https://livingleashless.com/Illdy-child/
Description: Illdy Theme
Author: Colorlib
Author URI: https://colorlib.com
Template: Illdy
Version: 1.0.35.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio
Text Domain: illdy
*/
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
But under appearance>themes I get this message:
Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.
What else needs to be added to complete the child theme?
Thank you!
-
This reply was modified 7 years, 10 months ago by edavenport.
-
This reply was modified 7 years, 10 months ago by edavenport.
-
This reply was modified 7 years, 10 months ago by bdbrown.