This topic has 10 replies, 3 voices, and was last updated 8 years, 6 months ago ago by Eva Kemp
There is a rule in the Royal theme CSS that is conflicting with the WPEngine dashboard page in WordPress admin. Specifically, in royal/framework/css/admin.css, on line 862, you have:
.wp-core-ui .modal{
top:4% !important;
}
This is forcing the modal on that page to never go away, which breaks the page (you can click the tabs behind it).
Can you issue a fix?
Hello,
Could you please show a screenshot of the issue?
Provide wp-admin credentials in Private Content.
Regards,
Eva Kemp.
credentials submitted in private content.
Hello,
I’ve added this code in Global Custom CSS. Please check it.
.wp-core-ui .modal {
display: none;
}
Regards,
Robert Hall
That had no effect. I assume that custom theme css is only applied to the front end. The Royal theme css file needs to be edited, or I need a way to unhook that css file on this particular dashboard page.
Hello,
In this case navigate to /wp-content/themes/royal/framework/css/admin.css file via FTP and try to comment out that code.
Regards,
Robert Hall
That’s the only solution you can come up with? Every time we update the Royal theme it will break again. Seems like a poor solution. Please ask your developers if they can address this, or give us a function to add to our child theme to disable the admin.css loading on that page. I tried this but it doesn’t work:
remove_action( 'admin_init', 'etheme_load_admin_styles' );
The core problem is that you have “!important” rules littered throughout the theme’s CSS, which is bad practice and this is an example of why.
Hello,
Please copy the admin.css file into child-theme/framework/css/ folder. Then add CSS style into the same file
.wp-core-ui .modal {
display: none;
}
Then add the following code in function.php file of the Child Theme
function mytheme_enqueue_options_style() {
wp_enqueue_style( 'mytheme-options-style', get_stylesheet_directory_uri() . '/framework/css/admin.css' );
}
add_action( 'admin_enqueue_scripts', 'mytheme_enqueue_options_style' );
Regards,
Robert Hall
Got it, thanks.
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘Royal admin CSS is breaking our WPEngine dashboard page’' has been successfully resolved, and the topic is now closed for further responses