Solution:
Make sure your child theme’s style.css contains the following:
/*
Theme Name: yourtheme-child
Template: yourtheme
Text Domain: yourtheme-child
*/
And that your parent theme’s style.css contains:
/*
Theme Name: yourtheme
*/
This ensures WordPress correctly recognizes the parent and child theme relationship.