In this project we had one frontend custom theme working, to do some customizations. That is working fine. Let's call that Theme1/custom (with Magento/blank as parent)

Now we have created a new frontend custom theme, let's call it Theme2/custom, whose parent is Theme1/custom

Both themes are working, but we are experiencing some issues when trying to override some layouts & templates

Let's say we have one customized template in app/design/frontend/Theme1/custom/Magento_Catalog/templates/product/list.phtml & now we need to override that same file in the new custom theme, so we have placed our changes in app/design/frontend/Theme2/custom/Magento_Catalog/templates/product/list.phtml

I am starting to think this approach is not valid when dealing with custom themes extending custom themes... Because project still loads the Theme1/custom one

Cache & static content are fresh, and permissions are ok

Any ideas?

update

This issue appears to affect only Magento_Catalog module... which makes that totally weird...

有帮助吗?

解决方案

Weird problems usually have weird solutions

All was working fine, but some catalog categories in project had checked attribute "Use parent category settings", and that parent category had forced the original Theme1/custom

其他提示

Please check your parent tag <parent>Magento/blank</parent>

In theme.xml file (path Vendor/theme/theme.xml)

And run all commands.

And double check your theme names

In your example path they started from Capital letters

许可以下: CC-BY-SA归因
scroll top