Silahkan Melihat Tutorial di website kami dengan nyaman ENJOY YOUR LIFE ☕

How to remove block from magento

Hello All,




We can Remove default block in mageto.  also you can remove your custom block.

just check your block name and put code in local.xml file in your current magento theme.

here some exmaple of remove block in magento.

just you know block name. <remove name="block.name" /> in your local.xml file

syntax  is this <remove name="block.name" />. just put your block name.

example of remove popular tag widget

        <remove name="tags_popular"></remove><!-- remove poplar tag widget -->

example of remove Newsletter  widget

        <remove name="left.newsletter"></remove> <!-- remove Newsletter widget -->

if you want remove from left side then write this

if you want to remove sidebar in magento theme. just check below code.


<reference name="left">
<remove name="left.permanent.callout" />
        <remove name="tags_popular"></remove>
        <remove name="left.newsletter"></remove>
         <remove name="currency" />
        </reference>

if you want remove right sidebar
<reference name="right">
       <!--<remove name="left.permanent.callout" />--> 
        <remove name="tags_popular"></remove>
        <remove name="left.newsletter"></remove>
         <remove name="currency" />
        </reference>





0 komentar:

Post a Comment

How to remove block from magento