我已经创建了一个儿童主题,其中包括&rbsp;'作为父主题。父主题在' head'中包含此代码。在page.xml中阻止:
<action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</href></action>
有没有办法在local.xml的子主题中删除它?
答案 0 :(得分:2)
在local.xml
文件中添加此代码
<default>
<reference name="head">
<action method="removeItem"><type>link_rel</type><name>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</name></action>
</reference>
</default>
答案 1 :(得分:1)
这并不明显,但很容易。
<action method="removeItem"><type>link_rel</type><href>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</href></action>