Default Admin Panel Styles Being Overridden
-
Whenever this plugin is installed some of the default admin styles are being overridden by the enqueued stylesheet. For example,
options/emwa.css
has the following style that’s being applied everywhere throughout the admin panel:table.form-table tr td, table.form-table tr th { padding: 5px 0px; }
So it changes the display of things like the WordPress setting pages and the User Pages. I’m not sure if this was intentional but could these style only be applied on the plugin options page and not to all admin pages?
Maybe wrap the enqueue into something like this:
$screen = get_current_screen(); if( ! empty( $screen ) && 'appearance_page_editorMenuWidgetAccess' === $screen->id ) { wp_enqueue_style( 'emwa' ); }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Default Admin Panel Styles Being Overridden’ is closed to new replies.