Unable to remove header and footer divs

I’m having trouble removing two DOM nodes from my Roots-based theme: <div id="header"></div> and <div id="footer"></div>. I’ve tried adding/removing content from header.php, front-page.php, footer.php, etc, all to no avail. Does anyone know which files I would need to edit to remove? Are they being injected into the DOM somehow? And are they present because of Bootstrap?

  1. Roots does not use #header or #footer
  2. Roots does not inject anything into the DOM
  3. This has nothing to do with Bootstrap
1 Like


Ben’s right. Disable all your plugins, maybe that’s injecting the code.

1 Like