Problems with checking Child Themes
-
Theme Check plugin is a great tool for theme developers, but I have some issues with checking child themes.
Firstly, checking a child theme reports:
‘Child theme does not have the Template Version tag in style.css.’
regardless of whether you have a ‘Template Version’ tag in the child’s style.css header or not.
As far as I can tell from the WP_Theme class, ‘Template Version’ isn’t a standard header tag, so this test always returns false when checked by Theme Check.
Secondly, checking a child theme reports:
‘WARNING: Your theme appears to be in the wrong directory for the theme name. The directory name must match the slug of the theme. This theme’s correct slug and text-domain is child-theme-slug.’
Theme Check appears to be comparing the parent template theme name with the child theme name, finding that they are different (naturally) and reporting the above warning.
Seems to me that these two checks aren’t working properly. If there’s an explanation for this behaviour, I’d like to know what it is.
Dr Tony B
- The topic ‘Problems with checking Child Themes’ is closed to new replies.