简体   繁体   中英

Magento Child Theme Creation Issue

I've a fresh installation of Magento ver 1.9.1.0 on localhost. I'm following this tutorial closely to create a child theme of Magento responsive theme.

I've followed all steps clearly. I've created Magento directory structure, using this approach

[Magento Directory]/app/design/frontend/{package_name}/{theme_name}/etc

and created theme.xml file there. As can be seen 在此处输入图片说明

Exact location of the theme.xml file is:

[Magento Directory]/app/design/frontend/tutsplus/vstyle/etc

as my package name is 'tutsplus' and theme name is 'vstyle'. I've also correctly enabled this theme from admin panel. As can be seen in below screenshot:

在此处输入图片说明

The code of theme.xml file is:

<?xml version="1.0"?>
<theme>
    <parent>rwd/default</parent>
</theme>

Can someone point out what am I missing?

Same problem. But here I had put comments <!-- --> in theme.xml . I had to just strip them.

Your file may be unreadable or corrupted.

Exactly the same issue here but here's how I solved it.

In addition to adding the package name and template name at System > Configuration > Design, you need to go to System > Design and add your new theme there too.

system > design

add package

If you haven't seen it already, check out http://www.magentocommerce.com/knowledge-base/entry/ee114-ce19-rwd-dev-guide .

The guide has additional information you'll need to get started.

Additionally, if the theme.xml file was formatted like this:

<theme>
    <parent>
        packagename/actualtheme
    </parent>
</theme>

It will not work. It needs to be formatted:

<theme>
    <parent>packagename/actualtheme</parent>
</theme>

Not sure why; maybe someone with more advanced knowledge could comment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM