Viewing 4 replies - 1 through 4 (of 4 total)
  • function custom_colors() {
    	if (!current_user_can('administrator')) {
    		echo '<link rel=\'stylesheet\' id=\'colors-css\'  href=\'https://domain.tld/wp-content/uploads/admin-color-schemer/scheme.css?\' type=\'text/css\' media=\'all\' />';
    	}
    }
    
    add_action('admin_head', 'custom_colors');

    With this code added in functions.php on the template i resolve the problem ??

    Tried this in my child themes functions.php, did not work. What am I doing wrong?

    I would like the color scheme to work for all user roles.

    Thank you,
    Devon

    with this code all the user that are not administratore have this scheme color. You have check the path of the css?

    Update: Found that the color scheme created by the admin is added to the user profile as a custom color scheme, and can be selected for use by other users.

    Thank you,
    Devon

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set scheme for all user’ is closed to new replies.