Parent Theme Missing
-
Site: suncityanthemhikingclub.com
Theme: Minamaze_Pro
Child theme I created: Minamaze_Pro-childProblem: It appears that the parent (Minamaze_Pro) isn’t referenced at all. I must have all the parent files in the child directory for it to work.
In testing I found that both get_template_directory_uri() and get_stylesheet_directory_uri() return the path to the child theme. (I have left the echos of these functions at the header of the site.)
At the moment I have copied all the parent files to the child directory to get it up and running. But as soon as I remove those that will stay true to the parent theme, it crashes.
I clearly have something wrong in my setup – but can’t find it. Any help appreciated.
CHILD STYLE.CSS HEADER:
/*
THEME NAME: Minamaze Pro child
THEME URI: http://suncityanthemhikingclub.com/Minamaze_Prochild/
Description: Minamaze Child Theme
Author: Kathleen Prince
Author URI: http://suncityanthemhikingclub.com
Template: nirvana
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns,right-sidebar,responsive-layout,accessibility-ready
Text Domain: Minamaze_Pro-child
*/CHILD FUNCTIONS.PHP ENQUEUEING THE STYLES:
function theme_enqueue_styles() { $parent_style = 'parent-style'; 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 ) ); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );[Moderator Note: Please post code between backticks or use the code button. Your posted code may now have been damaged by the forum’s parser.]
The topic ‘Parent Theme Missing’ is closed to new replies.