[英]Magento Child Theme Creation Issue
I've a fresh installation of Magento ver 1.9.1.0 on localhost. 我在本地主机上全新安装了Magento版本1.9.1.0。 I'm following this tutorial closely to create a child theme of Magento responsive theme.
我正在密切关注本教程,以创建Magento响应主题的子主题。
I've followed all steps clearly. 我清楚地遵循了所有步骤。 I've created Magento directory structure, using this approach
我使用这种方法创建了Magento目录结构
[Magento Directory]/app/design/frontend/{package_name}/{theme_name}/etc
and created theme.xml file there. 并在那里创建了theme.xml文件。 As can be seen
可以看出
Exact location of the theme.xml file is: theme.xml文件的确切位置是:
[Magento Directory]/app/design/frontend/tutsplus/vstyle/etc
as my package name is 'tutsplus' and theme name is 'vstyle'. 因为我的软件包名称是'tutsplus',主题名称是'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: theme.xml文件的代码为:
<?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
. 但是我在这里在
theme.xml
中theme.xml
<!-- -->
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. 除了在“系统”>“配置”>“设计”中添加软件包名称和模板名称之外,您还需要转到“系统”>“设计”并在其中添加新主题。
If you haven't seen it already, check out http://www.magentocommerce.com/knowledge-base/entry/ee114-ce19-rwd-dev-guide . 如果您还没有看到它,请查看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.xml文件的格式如下:
<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.
也许具有更高级知识的人可以发表评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.