Title: Custom Admin Menu Width Compatibility &#8211; Request
Last modified: July 8, 2025

---

# Custom Admin Menu Width Compatibility – Request

 *  Resolved [WPExplorer](https://wordpress.org/support/users/wpexplorer/)
 * (@wpexplorer)
 * [11 months ago](https://wordpress.org/support/topic/custom-admin-menu-width-compatibility-request/)
 * In the plugin you have some CSS like this:
 *     ```wp-block-code
       /* WooCommerce header fix */.woocommerce-layout__header,/* Elementor Settings */#e-admin-top-bar-root {	width: calc(100% - <?php echo esc_html( $custom_width ); ?>);}
       ```
   
 * Could you perhaps target a utility class that can be used within other themes
   and plugins to automatically support your custom width setting?
 * Or store the custom width in a CSS custom property (css variable)?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bowo](https://wordpress.org/support/users/qriouslad/)
 * (@qriouslad)
 * [11 months ago](https://wordpress.org/support/topic/custom-admin-menu-width-compatibility-request/#post-18546956)
 * [@wpexplorer](https://wordpress.org/support/users/wpexplorer/) do you have an
   admin screen that is currently incompatible with the custom menu width?
 * I wasn’t able to find a utility class that is used across different plugins/themes
   to target, which is why you’re seeing that CSS.
 * Storing it in a CSS variable might be a good idea, but will require documentation
   to explain it and linking to that documentation, plus some extra work by the 
   user who need it. The current preference is to wait for users to report an incompatible
   admin screen and fix it for all users who has that admin screen on their sites.

Viewing 1 replies (of 1 total)

The topic ‘Custom Admin Menu Width Compatibility – Request’ is closed to new replies.

 * ![](https://ps.w.org/admin-site-enhancements/assets/icon-256x256.png?rev=3099794)
 * [Admin and Site Enhancements (ASE)](https://wordpress.org/plugins/admin-site-enhancements/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/admin-site-enhancements/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/admin-site-enhancements/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-site-enhancements/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-site-enhancements/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-site-enhancements/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bowo](https://wordpress.org/support/users/qriouslad/)
 * Last activity: [11 months ago](https://wordpress.org/support/topic/custom-admin-menu-width-compatibility-request/#post-18546956)
 * Status: resolved