This is default class header content and footer content

<header class="page-header">
     <div class="header content">

how to remove them? I cannot find any way to do that and also don't want to use js quick fix for that. any suggestion is welcome.

1 Answer 1


I reckon you should be able to do:

<referenceContainer name="header-wrapper" htmlClass="">

As well as

<referenceContainer name="footer" htmlClass="">

In your layout.

  • 1
    @QaisarSatti you're welcome ;) Commented Jun 6, 2016 at 7:42
  • 1
    Unfortunately, this seems not to work anymore in Magento 2.2+
    – sebastian
    Commented Oct 20, 2017 at 11:18
  • That DO not work in magento 2.2 because of XSD... Commented Feb 2, 2018 at 16:38
  • it is work in M2.3.3 Commented Dec 9, 2019 at 12:02

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.