How to hide “Exit Classic Experience” link on SharePoint Online

Microsoft has recently rolled out an “Exit classic experience” link in SharePoint Online sites/lists where classic View is activated.

In case you have some old-style customizations like JSLink in your forms, it should be interesting to hide this button and avoid some headaches.

To achieve this, just insert the following CSS snippet in your masterpage, custom CSS file or inside a style tag in a content editor WebPart:

/* Hide ‘Exit classic experience’ link */

a[onclick=’GoToModern(false)’]{ display: none }

Leave a Reply

Your email address will not be published. Required fields are marked *