As noted by @Fusion, this has changed beginning with version 5. In order to override admin styles for 5.*, you need a hook in functions.php
, something like this:
function custom_admin() {
$url = get_settings('siteurl');
$url = $url . '/wp-content/themes/my-theme/wp-admin.css';
echo '<link rel="stylesheet" type="text/css" href="' . $url . '" />';
}
add_action('admin_head', 'custom_admin')
Sources:
WordPress Codex
isitwp Snippet
Please note the the isitwp Snippet erroneously mixes html entitites with angle brackets. You should use angle brackets not entitieis.
Related Posts:
- Enqueue Javascript Correctly for 3.5
- Override Admin menu icon
- How does printf( __( ) ); work?
- Return HTML Template Page with PHP Function
- Why do templates contain so many PHP tag pairs?
- Is there a way to parse shortcodes in PHP?
- Site Title and Tagline in Theme Options Page
- Static Frontpage Pagination – Custom loop
- How to have a custom display for both woocommerce archive and product-category pages? [closed]
- Admin Media grid view images won’t load
- On this day PHP code
- How to loop over custom fields in a page template?
- WordPress theme & site not loading after moving files
- Use Timber/Twig to pull an image by image ID [closed]
- Easiest way to show total number of subpages
- WordPress if (is_page) translation on certain page
- Performance issues with large website [closed]
- Blank space at beginning of tag?
- Link to file in plugin directory from wordpress template?
- Password protecting content in custom template
- JQuery not working on WordPress Admin page [closed]
- How to display user nickname (not display name) in PHP template?
- Custom Template 404 for specific custom post type
- How to properly insert a link to a template in WordPress?
- Custom field value not saving when it contains a URL?
- Can’t extend some core classes
- Render ninja form inside markup
- Namespace spl_autoload problem in WordPress admin
- Mass update excerpt
- Unreadable pagination
- remove wp floating submenu in wp dashboard
- How can I get a single php file that is the equivalent of an existing WordPress page?
- My custom wp-admin php files stopped working
- Custom search results page not working with empty search
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Cannot access wp-admin (wordpress dashboard)
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- How to make my custom widget appear within WordPress widgets? Plugin development
- Change title only in dynamic page
- Enable custom logo upload if logo is not in header
- WordPress admin is incredibly slow [closed]
- How can I edit the content in index.php? [duplicate]
- How to change menu labels
- Show a different code on front page to other pages
- PHP include is only working in certain places in my custom WP theme
- Use WordPress function in php file
- Adding wrapper elements in the_date() like in the_title()?
- How to get all author posts outside of author templates
- How can I open up my administrative panel to everyone?
- Convert WordPress date format to jQuery UI Datepicker format
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Usage of call back function of add_meta_box()
- How to set a template with wp_insert_post
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- AJAX wp_insert_user WORKS but responds with “The site is not enabled”
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- How to render a block from php template
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- How to suppress template-parts in undescores?
- Creating custom page template from existing PHP site
- Conditional string comparison failing for basename/slug
- I installed WordPress locally now how do I login?
- How to add new CSS file to new PHP file
- Removed jQuery script from header.php , any problems?
- How to debug failed changes to posts?
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- How can I update WordPress plugins or WordPress itself in all server?
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Fatal error login WordPress [duplicate]
- Display articles with a different template in the home page | Solved |
- Class ‘WP_Privacy_Requests_Table’ not found
- Converting Array to String Issue [closed]
- Polylang and template files
- How to access this jQuery/AJAX data in a PHP file/WordPress plugin
- How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?
- How to disable sub menu items from being created?
- Access to “My Site” is missing from the admin bar
- spl_autoload_register is slow for WordPress sites
- How to create dynamic templates?
- Change WooCommerce template for PDF – access to custom field
- Admin backend, show post from a category and exclude the posts from subcategories
- How to include a function in a template with template tag
- Right way to display the_author_meta fields?
- Use page-templates without creating theme
- How do I modify the Previous and Next Page posts on blog pages to include “previous” and “next” before the links?
- admin uploads pre_get_posts not working as expected
- Styling admin page rows in order of importance (checkboxes)
- Problems With Query and/or Template Part and/or PHP
- Odd page behaviour after removing sidebar
- WP Login Button for current domain
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- Twig+WordPress how to use array arguments inside a function?
- How to implement a custom sliding banner? [closed]
- How do I change the Go To Categories link in the term_updated_messages
- Why can’t I enter the wordpress admin interface?
- How to change wp-admin and wp-login urls
- How can one use variables in a template or template part without polluting the global scope?
- Add Woocommerce Customers link to custom admin menu
- Need Help With Making Full-Width Template for Blog Posts (common methods aren’t working)
- Restricting access to a file for everyone except logged in users