Follow these steps:
-
Use the following code in your functions.php or your site specific
plugin:function set_default_admin_color($user_id) { $args = array( 'ID' => $user_id, 'admin_color' => 'coffee' ); wp_update_user( $args ); } add_action('user_register', 'set_default_admin_color');
-
Now, add these lines to force “Coffee” color scheme to be displayed
in the admin bar:if ( !current_user_can('manage_options') ) remove_action( 'admin_color_scheme_picker', 'admin_color_scheme_picker' );
Related Posts:
- Deregister CSS style link ‘open-sans-css’
- WordPress Admin Bar Overlapping Twitter Bootstrap Navigation [closed]
- How do i use fontawesome icons in TinyMce editor?
- Remove top admin bar
- How to Add Admin Bar and Admin Menu or Submenu Notification Bubbles?
- Gutenberg Block Editor Match Admin Styles & Frontend Styles
- Hide Front-End Admin Bar Including 32 px Spacing
- Different css rules for TinyMCE and Gutenberg while using add_editor_style()
- Load in wp admin assets from child theme
- Pure CSS to “float” to the right the number of children of an admin_bar child node
- Admin pages missing css
- How to enable table overflow scroll? (especially order list table)
- How to disable the hover effect in WordPress and Elementor?
- How to stop my themes CSS changing the WordPress interface/?
- dynamic css file for admin / backend and get_option results in Uncaught Error: Call to undefined function get_option()
- Apply custom css for user role
- Custom css author role
- Button doesn’t work in the profile panel
- ACF Gut block broke wordpress default style?
- WordPress Sudden Loss of All CSS And Tons of JQuery Errors
- How can I add a stylesheet to the Classic Editor page?
- Stop custom Gutenberg styles taking over other admin bits?
- WP Admin Bar transparent on some pages (.screen-reader-shortcut)
- Lines of CSS only being delivered while logged in
- Adding custom css to a theme depending on whether the admin user is logged in or not
- How can a left and right margin be added to the admin bar without access to “…wp-includes/admin-bar.php”?
- Change Login CSS – Include instead of echo
- custom css in admin panel by user id
- Site layout problems when logged in due to admin bar
- Bootstrap navbar-fixed-top issues [closed]
- Enqueue MCE Editor CSS in admin page
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- CSS display: inline vs inline-block
- Aligning two divs side-by-side
- CSS transition shorthand with multiple properties?
- Text border using css (border around text)
- Is there an opposite CSS pseudo-class to :hover?
- U8Qtu
- Using custom fonts using CSS?
- How can I transition height: 0; to height: auto; using CSS?
- Display Images Inline via CSS
- Why CSS3 Animation is not working?
- How to change version of .css in WordPress?
- Disable SSL / HTTPS for wordpress
- How do I remove specific styles from the parent theme css using the child theme css?
- Why isn’t my theme processing SASS?
- What CSS rules are introduced to core blocks through wp-block-styles?
- Trying to load a responsive CSS media query using Custom Taxonmy
- What is better way to use Bootstrap inside admin panel?
- How to load different css file depending on language
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- I want to change my post titles from h2 to H1
- Change logo on specific page id using css
- Layer post title on top of image WordPress featured thumbnail image
- Twig + wordpress – how to get filemtime for style.css
- Inconsistent `body_class()` function
- Link theme options page using ACF to styles
- footer disappear on some pages frequently
- How to change H1 color only for pages [closed]
- How to get an unique identifier for a page/post/category/tag etc.?
- Display Something in the Header After All Styles are Loaded
- WordPress custom CSS file overrided by internal CSS [closed]
- Can you change the color of svg icons to the global color I choose from WordPress
- After moving my site, sub-menus are not showing [closed]
- Theme twentythirteen widget area clearfix
- Using categories on navigation bar instead of pages
- Superfish and WordPress: Active Color Problem
- Elementor – Edit Global Colors Order
- the_post layout
- How To Remove All Other Plugins CSS
- Hot reload failing to update file changes
- How can I hide this custom slider while Elementor editing window is open?
- Removing a CSS rule from Custom Taxonomy
- style.css not working but customizer additional css does?
- Performance hit of Inline CSS
- How to set different color in a select box due to selection with css
- How to disable all css from the theme for a specific post type page
- Change WP Child theme CSS for WP Bootstrap Starter Theme
- Custom CSS rule overridden in theme
- Twenty Fourteen: Shrinking header while scrolling down
- Style sidebar for a custom page template exclusively
- Make Responsive Specific Page in WordPress
- Sticky Button not working WP. But does it JS Fiddle
- How to enqueue google fonts if we use directly in style.css
- Trouble with adding preloader to my home page index.html and index.js
- How to change in css with a custom theme?
- Wesbite super slow on iphone / very fast on desktop with same connection on wifi
- WordPress crop image not working [closed]
- How to implement styling of div in the front end using plugin admin meta box settings?
- Browser stacks different versions of style.css
- Is it possible to make invisible a div only on certain pages using CSS?
- What CSS selectors to know for WordPress? [closed]
- MY CSS FILE IS MISBEHAVING. IS NOT WORKING WELL ON MY WP SITE [closed]
- Image is very blurry
- WordPress site suddenly not showing some DOM elements but mobile is fine
- Editing size of h3 tag in wordpress on a one-off basis
- Content doesn’t fit on large size desktops like 2560×1440