Because wp_dequeue_style
should run after wp_enqueue_style
ran. So you need to call it with a lower priority so your hook can be applied after it has been enqueued.
try this
add_action( 'wp_enqueue_scripts', 'my_dequeue_scripts', 99 );
function my_dequeue_scripts(){
wp_dequeue_style( 'dashboard' );
}
Related Posts:
- Changing Admin Menu Labels
- Remove dashboard, use Pages tab as default
- Add “external” link to admin menu in the backend
- How to display the user that published a pending post?
- How to remove the site health dashboard widget?
- Copy my user account’s wp-admin dashboard layout to other users?
- Make sub menu items a main link in the admin menu using fuctions.php
- How to disable or hide “collapse menu”
- Dashboard links not working
- Removing admin bar from wordpress dashboard
- Can’t access dashboard, connection times out (other pages work fine)
- wp-admin does not redirect to dashboard
- Cannot log into WordPress Dashboard after removing/adding .htaccess
- Custom WordPress Dashboard for Specific user role
- Show Welcome Panel on Dashboard for every user
- Prevent /wp-admin/ from redirecting to homepage?
- How do I set the homepage to the WordPress Admin Dashboard login?
- Create a fullwidth dashboard widget
- Locked Out Of WordPress Admin Dashboard After Server Move
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- WP-Admin shows (1) update but there is no update for plugin, theme or WordPress
- White screen of death in Dashboard after clean installation
- How do I let logged out users see the dashboard?
- WP admin user search doesn’t return all users
- can not access wp-admin after migrating to openshift
- How do you force the wordpress dashboard to be 1 coulmn by default?
- How to remove dashboard access (wp-admin) for author but not disable the capabilities?
- always by default show welcome panel in the dashboard
- Dashboard Widget CSS
- Admin top level menu, pointing to an external url
- how can I change the font on Edit Post area (admin dashboard)
- Dashboard : remove Safari navigator message
- Move WooCommerce menu entries to top of dashboard
- Change maxlength of link_description in dashbord link section?
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- Broken Customizer page
- I can’t access my wp admin dashboard
- Step by step guide for new users on how to post content?
- How to log into WordPress via GET/POST
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Getting 404s in wp-admin after logged in
- Admin section showing CUSTOM Permalink structure thus resulting in permission error [closed]
- Unable to access dashboard (wp-admin) only
- Launch wordpress site to local computer from live website backed-up
- All of my WordPress sites have Bold Open Sans
- How to make the Panel // WP-Admin lighter via Mobile
- How can you change the admin dashboard URL without symlinking?
- adding the category to the admin column for a custom post type?
- how do I force a single column layout in screen layout
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- wp_list_table search box does not show
- How to Display Post Excerpts in Admin by Default?
- WordPress in sub directory wp-admin problem
- Admin account only shows Profile and Dashboard with no activity
- Adding body class to login page?
- Edit a WordPress site without the username and password?
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How can I remove the new stats message? [closed]
- How to inhibit dashboard and profile management access to normal users?
- Why can’t I exclude private posts from this query?
- Cannot Access Admin Area After Migration
- Modify wp-admin page header ‘viewport’ meta data
- The uploaded file exceeds!
- WP Admin/ WP Login Redirect to themselves
- Too many redirects after added SSL redirect on port 80 virtual host
- Downgrade admin account by mistake
- Deploying WordPress for clients – what do they have access to?
- In the Admin Dashboard, can I choose which sections to display?
- Removing Dashboard Menu Items Through The Database
- Can log as admin but dashboard missing [closed]
- Customising Word press Admin – Add Post Page functionality to another similar page
- How to add ‘Insert HTML Table’ button to TinyMCE in admin?
- How to allow WordPress updates to only one specific administrator?
- How can I remove commas when adding tags?
- Displaying Title in Title Tag on Edit page?
- Add data to post edit page, when post is published
- How can I remove unwanted word on my WP site?
- WordPress blog clone.. wp-admin issue
- How to take the help button and link off the dashboard
- How do I fix wp-admin error when exporting reusable blocks?
- issue with wordpress [wp-admin] redirects, when using kubernetes ingress hosting two wordpress websites using path
- Toggle between block ‘edit content’ and ‘select’ not properly working in WordPress Admin
- Can’t acces login on new site
- WordPress Admin Panel Left Sidebar No showing on Post create page
- How to prevent spams from admin-ajax.php file?
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- How to view a post from the wordpress admin screen
- Strange wp-admin problem for all users/adminstrators except the original one?
- adding existing menu page on new customer user role
- stop customize.php redirect to login page if admin is not logged in
- Random authentication failures on a load balanced WP setup
- remove_query_arg on options.php
- Organising and display thousands of photos in media library
- Get URL of current featured image with JS in edit post view
- Block tools menu in wp-admin?
- is_admin() triggers error
- WordPress Admin: open popup window on a custom button
- WordPress blog fails to open
- Redirecting the user to the admin table area after publishing a post, getting an invalid response error?
- WordPress Localhost migration issue