Twig templates not inheriting

by Kevin   Last Updated November 13, 2017 18:07 PM

I have a parent theme with templates defined in a directory called templates. Within that folder, I have directories like base (page, html, block etc twig templates), views, and menu folder.

My subtheme, which is based on the parent, will not load these templates even though base_theme is set in the .info.yml file.

What am I missing? If I copy the templates into the subtheme, they begin to work.

Tags : 8 theming


Answers 2


Annnnd after asking I read my question and realized my answer. The key base_theme is not one word, it's two.

Kevin
Kevin
March 31, 2015 14:14 PM

Make sure you have the correct indentation in THEME.info.yml file, I had some problems before with this aspect. And also clear the cache after changes.

OPTASY
OPTASY
November 13, 2017 17:54 PM

Related Questions


Features can export everything?

Updated March 26, 2015 10:02 AM


No image style found

Updated March 29, 2015 15:02 PM


Best way to have 5 or 6 themes in one site drupal 7

Updated April 09, 2015 22:03 PM