diff --git a/packages/edit-site/src/components/maybe-editor/index.js b/packages/edit-site/src/components/maybe-editor/index.js index bee1c427c87b47..3ffa5a35b82ef7 100644 --- a/packages/edit-site/src/components/maybe-editor/index.js +++ b/packages/edit-site/src/components/maybe-editor/index.js @@ -43,6 +43,9 @@ export function MaybeEditor( { showEditor = true } ) { document .getElementsByTagName( 'html' )[ 0 ] .setAttribute( 'style', 'margin-top: 0 !important;' ); + document + .getElementsByTagName( 'body' )[ 0 ] + .classList.remove( 'admin-bar' ); // Make interactive elements unclickable. const interactiveElements = document.querySelectorAll( 'a, button, input, details, audio'