We have updated our magento 2 installation from 2.1.2 to 2.1.5. Everything went fine, except for the layout.

Somehow Magento doesn't load some parts of our custom theme anymore? For example the file: app/design/frontend/Wantsandneeds/theme/Magento_Theme/layout/default_head_blocks.xml

Is not triggered anymore? It worked well in 2.1.2 What has changed regarding to themes?

Check what type id your theme has in the database, (theme table). apparently there is something called virtual themes that can cause issues like the one you describe. "Standard" themes have type 0, virtual 1. More on that here: Magento 2 - Theme Type 0:physical, 1:virtual, 2:staging. When to use?

  • Thanks for your quick reply.. but all the themes have type 0. So that's not our solution. – Xaiamedia Mar 7 '17 at 13:57
  • If your theme files disappear (for example if you move the folder or switch to a git branch which doesn't have the theme), then Magento will change the theme to virtual (1). Restore the theme files, then update theme set type = 0 where theme_id = <your theme ID> – jdhildeb Sep 14 '17 at 17:42

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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