This code works with WordPress 5.2 and is correct.
You now need to go to your Profile and select it by going to
Users
> Your Profile
> Admin Color Scheme
select the scheme and save.
Edit: Adding updated code for your colors CSS file since you’re using a child theme:
function additional_admin_color_schemes() {
wp_admin_css_color( 'pro', __( 'Pro' ),
get_stylesheet_directory_uri().'/wp-content/themes/astra-child/pro/colors.css',
[ '#E5E5E5', '#E5E5E5', '#3498DB', '#3498DB' ]
);
}
add_action( 'admin_init', 'additional_admin_color_schemes' );
Note here I removed the .min
from the CSS file. I recommend you copy the non-minified CSS file over, so you can easily edit and customize the styles.
Related Posts:
- Sortable column (by numbers) in admin users
- Changing Admin Menu Labels
- Adding fields to the “Add New User” screen in the dashboard
- How to load scripts/styles specific for a page
- Displaying the number of updates available in the Admin area
- What’s the difference between admin_url() and get_admin_url() functions?
- How to influence the information displayed on widget inside wp-admin
- functions.php inject inline css
- How to override admin-bar style
- TinyMCE custom styles remove class when switching styles
- How to manually activate user in dashboard only by admin
- Logout/login redirect CSS issue
- AJAX handler throws 400 (Bad request) – why?
- wp-admin page is blank
- Add attribute to link tag that’s generated through wp_register_style?
- Make sub menu items a main link in the admin menu using fuctions.php
- TinyMCE custom stylesheets for different post types
- Replacing select2 in admin backend for all selects
- difference between add_object_page and add_menu_page
- Where do i create my own function in wp-admin
- Custom styles.css sheet for visual editor
- How to remove comment count column in Posts inside the admin dashboard?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- Is my code correct to enqueue CSS on a specific page?
- header_image() with CSS
- Not all CSS elements transferring via parent to child?
- WordPress function only executes once
- Split Media Queries in different files!
- Some questions about how proper add 2 CSS file in a WordPress theme?
- problem loading stylesheets to wp_head dynamically
- error at login page in wordpress
- How to insert class in each list of categories?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- How to remove some item from WordPress Dashboard for user Author
- Theme JS is available but theme CSS isn’t
- Proper Way to Load stylesheet on Condition
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Default Nav Highlight
- Update to functions.php not showing in dashboard
- Add Link to Users List (Backend) to open each users front-end profile
- Custom styles in Tiny MCE with an external CSS file
- Add element to widgetpage
- why can’t i add front.css to my frontpage.php
- Best way to disable sidebars on posts (only)?
- get_template_directory_uri() links to child theme not parent
- “options.php” not found
- remove/hide wp-editor
- Getting out side of wp root folder from function.php using absolute path
- Page Template Won’t Load Correct CSS File
- current_page_item is missing inside wp_nav_menu
- define css class in functions.php
- How to change a specific admin label
- hook for dashboard show_user_profile
- How to change a meta value (of a published post) after X days.?
- Completely Disable WordPress RSS Feeds
- Block all plug-ins from initiating redirection upon activation?
- How to add custom metakey to shop_order page’s searching function?
- Advanced method to control cache of enqueued style/script
- How to display my comment count in the wordpress admin bar?
- Combine page types and Custom Taxonomy in a functions.php command
- Can’t load assets
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Unable to login after registration
- Can we have conditional CSS styling?
- CSS style and app.js not loading
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- How do I make a custom “Read More Blogs” button for my blog page
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- Insert Modal on user first login
- Setting Up Child Theme To Take Priority
- how to remove a tag in the_category function
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- CSS disabled after getting rid of emoji
- How to add styles in existing function?
- Woocommerce – Switching Price for Category
- WP Enqueue Script Error
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- DISABLE wordpress upgrade page
- How do I dequeue a Stylesheet, stored in an ‘Assets’ folder?
- Child Theme not loading multiple stylesheets
- Correct way of Enqueue self hosted fonts in sass project
- Help with is_page() and calling css for specific pages in a Child Theme
- admin-ajax.php & my wp-admin folder url showing in header
- Child theme style.css didn’t work properly but the Customize Additional CSS did [closed]
- How to automatically add custom classes to headings in content area
- What is wrong with functions.php? Fills error log with same error
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Styling admin page rows in order of importance (checkboxes)
- Changing the color of post title [closed]
- Preventing PHP Execution in Parent Theme
- Random text changing to weird icons in both admin & front end
- Functions.php in child theme that loads CSS file breaks website
- Syling Custom Fields echo’s from from functions.php
- functions.php / replacing div’s with new ones?
- Remove theme, change theme button and WP version on “Right Now” admin dashboard?