0

How do I rid of an "addLinkRel" and a "setText" via "local.xml"? More specific, I'm trying to unload these

<action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</href></action>

<block type="core/text" name="head.viewport">
<action method="setText"><text><![CDATA[<meta name="viewport" content="initial-scale=1.0, width=device-width" />]]>&#10;</text></action>
</block>
1
  • Hey Felope, welcome to @stackMagento. could you please provide more details? At least show us which block holds addLinkRel action node. Commented Jan 21, 2015 at 0:51

2 Answers 2

0

Felipe Abranches,You can remove

<block type="core/text" name="head.viewport">
<action method="setText"><text><![CDATA[<meta name="viewport" content="initial-scale=1.0, width=device-width" />]]>&#10;</text></action>
</block>

this above block using remove tag <remove> at local.xml.

code is

<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <reference name="head">
            <remove name="head.viewport" />
        </reference>
    </default>
</layout>

and there nothing default way to remove

<action method="addLinkRel"><rel>stylesheet</rel><href>//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600</href></action>

code at local.xml If you want to remove it then you need go at page and comment that code

1
  • See my answer for how to remove the "addLinkRel". Feel free to update your answer to include that information. Commented Feb 18, 2015 at 16:11
4

It is actually possible to remove the "addLinkRel" without editing page.xml directly.

From the Magento RWD Guide (see step 2 in the "Removing Sample Data Assets" section):

<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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.