My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”

I am using the Pricerr theme. In my parent theme I have a CSS folder with a few css files in it, a rtl.css and a style.css.

What should be the code to put in the functions folder so that I can pull the info from the parents theme? And am i on the right track for identifying this as the error when they say “The parent theme is missing. Please install your parent theme?”

I’ve checked and my parent theme is under Appearance > Themes hence it is definitely loaded.

3 s
3

There are three things to check:

  1. Is your parent theme complete and what is the exact spelling of the parent theme’s name in its style.css. Uppercase and lowercase are important.
  2. Is the child theme directory named parentname-child. It should be in the themes directory, not in a subdirectory of the parent theme.
  3. Does the child theme’s style.css have the line Template: parentname in its header. Beware: NOT Template: parentname-child.

Strictly speaking you don’t need a functions.php file for your child theme, but you will probably want to load the parent theme’s style.css as well. Read more about that here.

Leave a Comment