0

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

Tried:

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

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

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>
2
  • Could you post how the block is inserted ? Also try without the reference tag Commented Mar 18, 2016 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
    Commented Mar 18, 2016 at 22:26

1 Answer 1

0

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

6
  • 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
    Commented Mar 19, 2016 at 12:40
  • get the id of your home page according to that remove or inactive that particular code. Commented Mar 19, 2016 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
    Commented Mar 21, 2016 at 1:19
  • tell me one thing are you using multiple stores ? Commented Mar 21, 2016 at 5:02
  • no, single store
    – fran35
    Commented Mar 22, 2016 at 13:12

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.