-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add message if JavaScript is disabled #11642
Changes from 2 commits
9e0fe91
484242b
4074ceb
456465a
4efeb84
74ce4d1
0a24750
a3f40d0
9b325e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,13 @@ function the_gutenberg_project() { | |
global $post_type_object; | ||
?> | ||
<div class="block-editor gutenberg"> | ||
<noscript> | ||
<div class="error" style='margin-top:32px'><p> | ||
<?php | ||
echo __( 'The block editor requires Javascript to be enabled.', 'gutenberg' ); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thumbs down is not really a productive response. |
||
?> | ||
</p></div> | ||
</noscript> | ||
<h1 class="screen-reader-text"><?php echo esc_html( $post_type_object->labels->edit_item ); ?></h1> | ||
<div id="editor" class="block-editor__container gutenberg__editor"></div> | ||
<div id="metaboxes" style="display: none;"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
body.is-fullscreen-mode { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See also #11677 |
||
body.is-fullscreen-mode:not(.no-js) { | ||
mkaz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// Reset the html.wp-topbar padding | ||
// Because this uses negative margins, we have to compensate for the height. | ||
margin-top: -$admin-bar-height-big; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The admin bar has different heights depending on the viewport.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The margin was simply to give some spacing from the bottom of the admin bar, so the error message isn't squished up against the top.