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
- How to load scripts/styles specific for a page
- Displaying the number of updates available in the Admin area
- 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
- wp-admin page is blank
- TinyMCE custom stylesheets for different post types
- How to fix a theme with page.php Default Template that accidentally deleted?
- Change labels on ‘Nickname’ and ‘Biographical Info’ in user-edit.php
- Remove “says” from comments
- How to add CSS style sheet dynamically in wordpress
- Simple/basic use of get_current_screen
- Child Theme Not Overriding Parent Theme
- CSS stylesheet not loading
- I changed “Howdy” in the admin bar in the dashboard, but when I’m viewing the site it still says Howdy!
- How to add a column to the Trash page?
- Comments to only be seen by their author
- How to add background image control to page admin controls?
- Create dropdown of users in admin dashboard
- Display WooCommerce subscriptions for user [closed]
- Removing the main link to Jetpack from the menu
- Register and enqueue style.css custom theme
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- Adding widget to dashboard with wp_dashboard_setup not working
- Add Featured image column into wordpress admin on pages AND posts
- Enqueue Style Only On Certain Pages Not Working
- Child Theme files – what is needed?
- How do I add Bootstrap and LESS to my migrated WordPress site?
- How to Display Frontend CSS for Administrator only
- change the url paths in the stylesheet dynamically
- Sections and tabs DRY – WordPress settings API
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Get First Child Page ID or Permalink in WordPress Admin
- Creating A New Admin Menu Tab For Theme Options
- wp-admin won’t load after setting wp-login custom url
- Change CSS for logged in users
- How to stop wordpress from injecting hard-coded style into image attachments with captions
- different style sheet for just one page template
- Remove “Published On” inside wp-admin
- 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?
- header_image() with CSS
- Some questions about how proper add 2 CSS file in a WordPress theme?
- problem loading stylesheets to wp_head dynamically
- How to insert class in each list of categories?
- I can’t add CSS with functions.php
- How to remove some item from WordPress Dashboard for user Author
- 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
- 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
- Completely Disable WordPress RSS Feeds
- Block all plug-ins from initiating redirection upon activation?
- 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
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- Can we have conditional CSS styling?
- 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
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- how to remove a tag in the_category function
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- 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?
- Help with is_page() and calling css for specific pages in a Child Theme
- How to automatically add custom classes to headings in content area
- What is wrong with functions.php? Fills error log with same error
- Changing the color of post title [closed]
- Random text changing to weird icons in both admin & front end
- 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?
- Code in functions.php appearing on front-end and dashboard [closed]
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Image width issue in IE [closed]
- How do I make my child theme’s CSS update when I save it?
- Changed functions.php file and now site is blank [closed]
- Setcookie not setting cookies anywhere except admin