Issue
In my WordPress website, I have created a child theme based on theme Divi, the child theme works perfectly and it has never had a problem, it doesn't display any PHP error message on the screen and the design is fully responsive as I expected.
I normally push the child theme folder and child theme files through GIThub.
Today I have realized that the Appearence->Editor on the admin area in WordPress displays the message:
This theme is broken. The parent theme is missing. Please install the "divi" parent theme.
I can't figure out why that error message come out only now. Can you please guys advise?
WordPress Version 4.5.13
Child Theme CSS header:
/*
Theme Name: Divi Child
Theme URI: https://webmarcello.co.uk/
Description: Divi Child Theme
Author: Marcello Perri
Author URI: https://webmarcello.co.uk/
Template: divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: divichild
*/
Thanks
Solution
I fixed this problem, the problem was the attribute Template: divi
in the header of my child theme CSS file, the word divi
(which is the parent theme) must have capital D
.
Here is the CSS header correct:
/*
Theme Name: Divi Child
Theme URI: https://webmarcello.co.uk/
Description: Divi Child Theme
Author: Marcello Perri
Author URI: https://webmarcello.co.uk/
Template: Divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: divichild
*/
Thanks for the help anyway.
UPDATE 2023:
As people suggested below, the Template needs to be set with the exact name of the template folder:
Template: <template folder name>
Answered By - Marcello Perri
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.