So I have the in my category->Display Settings->Display Mode set to "Static block only"

And category->Design->Layout set to "1 column"

And category->Design->Layout Update XML

   <referenceContainer name="content">
     <referenceBlock name="sidebar.main" remove="true"/>
     <referenceBlock name="sidebar.additional" remove="true"/>
   </referenceContainer >

And sidebar.additional doesn't get removed, But what I notice is if I remove only one of them at time it works but I need to remove both.

What am I dong wrong with the xml updated?

Any help Please Appreciate.


3 Answers 3


The only solution It worked for me was xml update by removing catalog.leftnav e.g

 <referenceContainer name="content">
     <referenceBlock name="catalog.leftnav" remove="true"/>
 </referenceContainer >
  • For me changing reference container to <referenceContainer name="sidebar.main"> has worked.
    – Gediminas
    Aug 12, 2020 at 15:59

Just use

<referenceBlock name="sidebar.main" remove="true"/>
<referenceBlock name="sidebar.additional" remove="true"/>

without wrapping in <referenceContainer name="content"> and everything will work.


In case, i am suggesting to make Anchor field Value at Display Setting to NO .

,Bcoz by default at magento2Anchor field value is set As YES.

I have also check same scenario at magento 1.X.If you category has Products and Display Setting* to YES and Display setting is only static block.Then on left panel ,you will layer navigations and right section CMS static block.

  • setting isAnchor to= NO works for my Magento2.1.0 but does not work for 2.1.7 Nov 22, 2017 at 13:46
  • have check the setting at store view scope?
    – Amit Bera
    Nov 22, 2017 at 14:01
  • @ Amit Bera there are no store view set only the default. However when I set the isAnchor to =NO it's seen to display a diferent template layout with id="narrow-by-list2" when before was narrow-by-list Nov 22, 2017 at 14:31

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.