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.

Topic parent-theme child-theme theme-development themes Wordpress

Category Web


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.


This question has long been answered, but since I stumbled here and this did not solve my problem, I thought I would add another solution.

In my case, the template was set correctly in both the parent and the child theme, but the parent theme's folder was not named what it expected. Despite all of the files themselves being correct, this can be a parent folder name issue.


The Template Name in the Child Theme Should be Parent theme's Folder name., If you give the Parent theme Name or something else It won't work.

Is your theme "pricerr" provided by 'sitemile' ?

then the template name should be like

Template: PricerrTheme

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.