The WPFolks app is out on iPhone and Android. Free, no ads. Download on the App Store Get it on Google Play
Skip to main content
Login Join
Snippet · PHP

Disable Browser Translation in WordPress Admin

Shared by Sumit Javia | Senior WordPress Developer · May 9, 2026 · Updated May 23, 2026 · @admin_body_class

94 views
1 upvote
Back to Snippets

This snippet adds the notranslate class to the WordPress admin body to help prevent browsers like Google Chrome from automatically translating the admin dashboard. Useful for maintaining original text formatting and avoiding translation-related UI issues in the backend.

// Added notranslate class to disable the translate functionality of the browser
function sj_add_custom_admin_body_class( $classes ) {
    $classes .= ' notranslate'; // Add your custom class here
    return $classes;
}
add_filter( 'admin_body_class', 'sj_add_custom_admin_body_class' );
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments