Themes Magento 2.4-生成通过composer安装的主题的子主题父主题

Themes Magento 2.4-生成通过composer安装的主题的子主题父主题,themes,magento2,Themes,Magento2,我需要小费。 我已经通过composer安装了一个主题,我需要创建一个子主题,并将一个通过composer安装的主题作为父主题 通过编写器安装的主题路径:vendor/{vendor}/{theme}/ 子主题路径:app/design/frontend/{vendor}/{theme}/ 在我创建的子主题文件夹中: theme.xml <theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:no

我需要小费。 我已经通过composer安装了一个主题,我需要创建一个子主题,并将一个通过composer安装的主题作为父主题

通过编写器安装的主题路径:vendor/{vendor}/{theme}/ 子主题路径:app/design/frontend/{vendor}/{theme}/

在我创建的子主题文件夹中: theme.xml

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>TitleTheme</title>
    <parent>{folder-name-vendor}/{folder-name-theme}</parent>
    <media>
        <preview_image>media/preview.jpg</preview_image>
    </media>
</theme>
registration.php

<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/{my-vendor-folder}/{my-child-theme}',
    __DIR__
);

<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/{my-vendor-folder}/{my-child-theme}',
    __DIR__
);