How to add custom css to login and admin?

That’s pretty fine and it’s the proper way to add CSS to login page. But you can also change login page CSS by below code- function the_dramatist_custom_login_css() { echo ‘<style type=”text/css”> //Write your css here </style>’; } add_action(‘login_head’, ‘the_dramatist_custom_login_css’); This actually prints CSS code inline in the login page. And for admin CSS your way … Read more

Add visit site to your toolbar instead of being in the dropdown

Not complicated, but a little tricky to get timing right. Something like this should work, but you might need to experiment with priority to get the link to specific position on the bar: add_action( ‘admin_bar_menu’, function ( $wp_admin_bar ) { if ( ! is_admin() ) { return; } /** @var WP_Admin_Bar $wp_admin_bar */ $wp_admin_bar->remove_node( ‘view-site’ … Read more

Adjust the Device Preview sizes used in the WP 4.5 Customizer

Both the mobile and the tablet dimensions are defined in the admin’s themes.css file. The javascript that runs when the buttons are triggered is just for adding and removing classes and not for dealing with the sizes themselves. So it shouldn’t be difficult to override the dimensions by adding some extra css. To keep it … Read more

wordpress wp-admin css not loading

I had the same issue a few months back I tried this and this works for me. define(‘FORCE_SSL_LOGIN’, false); define(‘FORCE_SSL_ADMIN’, false); define( ‘CONCATENATE_SCRIPTS’, false ); define( ‘SCRIPT_DEBUG’, true ); try to load wp-admin with SSL. After reloading it looks OK, maybe after re-login, set SCRIPT_DEBUG to false. hope this help