Skip to content

Instantly share code, notes, and snippets.

@ramonfincken
Created January 11, 2021 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramonfincken/ae2859eb26ebec6cb630df1c59343cd4 to your computer and use it in GitHub Desktop.
Save ramonfincken/ae2859eb26ebec6cb630df1c59343cd4 to your computer and use it in GitHub Desktop.
Increase gutenberg sidebar width
add_action( 'admin_head', [ $this, 'gutenberg_sidebar_more_width' ] );
public static function gutenberg_sidebar_more_width() {
?>
<style>
@media (min-width: 782px) {
.interface-interface-skeleton__sidebar { width: 450px !important; }
.interface-complementary-area { width: 450px !important; }
}
@media (min-width: 1182px) {
.interface-interface-skeleton__sidebar { width: 550px !important; }
.interface-complementary-area { width: 550px !important; }
}
</style>
<?php
}
@ramonfincken
Copy link
Author

@ramonfincken
Copy link
Author

I am open to suggestions to make this less hacky ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment