自定义主题

luma 主题作为父母

{
    "name": "magento/luma",
    "description": "N/A",
    "require": {
        "php": "~5.5.0|~5.6.0|~7.0.0",
        "magento/theme-luma": "100.0.*",
        "magento/framework": "100.0.*"
    },
    "type": "magento2-theme",
    "version": "100.0.1",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],
    "autoload": {
        "files": [
            "registration.php"
        ]
    }
}

在末尾

运行 php bin/magento setup:upgrade 此命令后,有时也需要以下命令

  • php bin/magento setup:static-content:deploy <language_pack_1> <language_pack_2> ... <language_pack_n>

    • <language_pack>en_US nl_NL en_GB
  • php bin/magento cache:flushphp bin/magento cache:clean