• Resolved Howdy_McGee

    (@howdy_mcgee)


    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)
  • Plugin Author GuyPrimavera

    (@guyprimavera)

    Howdy, McGee!

    You’re right, I must have forgotten to keep these styles local.

    Thanks a lot for letting me know, I’ll release an update shortly to fix this.

    Plugin Author GuyPrimavera

    (@guyprimavera)

    Hi McGee,

    I’ve released an update to solve this issue. As it’s only a tiny stylesheet I included it internally on the options page to save an extra HTTP request.

    Thanks again for spotting this, and do let me know if there are any other issues!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default Admin Panel Styles Being Overridden’ is closed to new replies.