creating child theme, problem with parent theme
-
Hello ??
I need help with creating a child theme with Filezilla. I tried creating one, the right way, with a style.cc file and a functions.php file. But wordpress is saying:
“matchbook2 child; The parent theme is missing. Please install the “matchbook2;” parent theme”.So I reinstalled the parent theme via wordpress and not via filezilla, but I still get the same message. “The parent theme is missing. Please install the “matchbook2;” parent theme. “
Do you think my theme equipped to allow child themes ? Or is my problem that I am using windows notepad to edit style.css files ?
This is what I wrote this in my child theme’s style.css:
/* Theme Name: matchbook2 child; Theme URI: https://wordpress:8888/; Description: This is a child theme; Author: Pru; Author URI: https://prunellechamaret.com; Template: matchbook2; Version: 1.0.0; */
and this in my child theme’s functions.php
<?php add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX); function enqueue_child_theme_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') ); }
Here’s my website address: https://www.prunellechamaret.com/#/sample-page
Thanks again for your help !
Pru
- The topic ‘creating child theme, problem with parent theme’ is closed to new replies.