我在WAMP Windows 10上使用Magento 2 CE版本2.1.0
我已经提到了
Magento 2:如何覆盖微型购物车默认模板html文件?
想要覆盖Magento 2默认Luma主题
我有以下文件夹结构
magento2
|_ app
|_ design
|_ frontend
|_ Custom
|_Theme
|_Magento_Theme
|_templates
|_root.phtml - Copy of Luma
registration.php
theme.xml
app \ design \ frontend \ Custom \ Theme \ Magento_Theme \ registration.php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'frontend/Custom/Theme',
__DIR__
);
app \ design \ frontend \ Custom \ Theme \ Magento_Theme \ theme.xml
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>My Theme</title>
<parent>Magento/luma</parent>
</theme>
我也运行php bin/magento setup:static-content:deploy
并清除缓存。它不会在中显示我新创建的主题Admin -> Content -> Design -> Configuration
。编辑下拉列表。
我还缺少什么?