WordPress.org

Ready to get started?Download WordPress

Forums

Changing the font-size/type/look of the Dashboard for visual-impaired client? (4 posts)

  1. 1HorseMedia
    Member
    Posted 1 year ago #

    I have a client that we are building a WordPress e-commerce site for. She has a visual disability and uses special hardware on he computer to have everything appear bigger. The problem is she loses a lot of the parts of the Dashboard because everything is larger. The default type in Pages/Posts is also hard on her eyes and she needs a font to look at when she is typing in her Posts closer to calibri or Arial (the actual font on her website will be controlled in the CSS--she just needs to be able to type in something different).

    Anyone know of way to modify the dashboard and/or the text on the Dashboard?

    If there isn't a way to control these things, is it possible to be able to do that in a future update so that anyone who has visual disabilities can still be a part of the WordPress community?

  2. ariwinokur
    Member
    Posted 1 year ago #

    Just wanted to say I am also looking for something to tweak this, but really only for one user. Please let me know if you find anything.

  3. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Have to tried to advise them to hit ctl and + to make any page (in all major modern browsers) to increase the size of the page in the browser?

  4. Joe Dolson
    Member
    Posted 1 year ago #

    This is definitely something you can do. The next version of my plug-in, http://wordpress.org/extend/plugins/wp-accessibility/ will include the ability to add an administrative stylesheet globally, but it's not much more complicated to add one just for a single user.

    What you need to do is add an action to the admin_head hook, and use that to set up a custom stylesheet, where you'll set up your styles.

    add_action('admin_head', 'wpa_admin_stylesheet');
    function wpa_admin_stylesheet() {
        $current_user = get_current_user_id();
        if ( $current_user == 1 ) {
    	$file = get_stylesheet_directory_uri() . '/wp-admin.css';
    	echo '<link rel="stylesheet" type="text/css" href="' .$file. '">';
        }
    }

    What the above code will do is fetch a custom stylesheet named 'wp-admin.css' out of your theme template directory if the current user is the user with ID = '1'. Change the user ID check to the ID of the user you want to customize for, then write custom styles to adjust whatever you need to adjust in the admin.

Topic Closed

This topic has been closed to new replies.

About this Topic