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
There are three things to check:
- 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. - Is the child theme directory named
parentname-child
. It should be in the themes directory, not in a subdirectory of the parent theme. - Does the child theme’s
style.css
have the lineTemplate: parentname
in its header. Beware: NOTTemplate: 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.