I'm trying to remove a static block from homepage, using local.xml.


    <reference name="head">
        <action method="addItem"><type>skin_js</type><name>js/jquery.flexslider.js</name></action>

    <reference name="content">
        <remove name="banners-homepage"/>

But the page still shows the static block (banners-homepage, which war created as static cms block).

What is my mistake? Cache is disabled.

Following is the cms page code relative to that block:

<p style="text-align: center;">{{widget type="cms/widget_block" template="cms/widget/static_block/default.phtml" block_id="5"}}</p>
  • Could you post how the block is inserted ? Also try without the reference tag – Raphael at Digital Pianism Mar 18 '16 at 21:27
  • Thanks for having a look, I updated the original question adding the code in the cms page that calls the banner I want to remove. – fran35 Mar 18 '16 at 22:26

Hello Simply go to the CMS -> widgets in Magento Admin Panel and remove the widget . Or you can check in static block search for id 5 and diable it

| improve this answer | |
  • thanks, but the thing is that I'll use the same homepage in both themes, mobile and regular one. I need to disable it only in mobile one. – fran35 Mar 19 '16 at 12:40
  • get the id of your home page according to that remove or inactive that particular code. – PRashant PUrohit Mar 19 '16 at 13:08
  • that is what I'm trying to do, unfortunately it seems my query is either badly formed or that there's something I'm missing, as the elemnt is still shown. Any specific pointer on how to do it? – fran35 Mar 21 '16 at 1:19
  • tell me one thing are you using multiple stores ? – PRashant PUrohit Mar 21 '16 at 5:02
  • no, single store – fran35 Mar 22 '16 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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