0

I am making a child theme in the .../wp-content/themes/ folder however the parent theme that I am building on is in the .../wp-content/plugins/ directory. I am able to import the parent style.css file using a directory path but when I try to do the same for the Template value, it does not work. Similarly, the simple name of the parent theme folder does not work either, presumably because the parent theme is in a different directory.

Any ideas on how to fix this?

  • It was an issue of versioning, where the site needed to be refreshed again after saving the child style.css file. The solution was to include the Template value like any other child theme and adjust the import command using a full path instead of a relative ".../" preceding the parent style.css – Mike Stumpf Jul 18 '13 at 14:49
0

If the parent theme's non-standard location was correctly added with register_theme_directory, and I am pretty sure it must have been, then functions like get_stylesheet_directory_uri and get_template_directory_uri should work.

Reference

http://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Themes

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.