• This was an issue reported by @tomjcafferkey in the WordPress Core Trac:

    Steps to replicate

    1. Install [Page Optimize](https://wordpress.org/plugins/page-optimize/) plugin
    2. Change your admin color scheme in /wp-admin/profile.php to a non-default scheme
    3. Go to /wp-admin/options-general.php and update your Site Language to an RTL language

    What I expected to happen

    My admin color scheme would be the one I updated it to.

    What actually happened

    Admin color scheme switched back to the default color scheme.

    Additional information

    We found out this is because there needs to be [extra data set](https://developer.wordpress.org/reference/functions/wp_style_add_data/) for RTL when enqueuing the stylesheet:

    wp_style_add_data( 'colors', 'rtl', 'replace' ) fixes this when the site language is set to RTL

    Additional RTL support documentation that recommends wp_style_add_data for RTL found [here](https://codex.wordpress.org/Right-to-Left_Language_Support).

    This will also help maintain consistency as admin-menu stylesheet does include this additional data for RTL support when the Site Language is set to an RTL language.`

    The page I need help with: [log in to see the link]

  • The topic ‘Admin color schemes do not work in RTL’ is closed to new replies.