4

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.

5

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 >
| improve this answer | |
  • For me changing reference container to <referenceContainer name="sidebar.main"> has worked. – Gediminas 2 days ago
0

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.

| improve this answer | |
  • setting isAnchor to= NO works for my Magento2.1.0 but does not work for 2.1.7 – Juliano Vargas Nov 22 '17 at 13:46
  • have check the setting at store view scope? – Amit Bera Nov 22 '17 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 – Juliano Vargas Nov 22 '17 at 14:31

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.