I have a classic team site on sharepoint 2019 (subsite). I need to hide this error message "We apologize for the inconvenience, but we've made OneDrive and sites read-only while we do some maintenance" when the database is not running
Tried to modify the master page and include the css code in the master page header. The customize html file has been converted to masterpage and published. Tried to clear cache but still the css config wont apply. Also tried different browsers. Also tested the css file link is working when tested in the browser of the sharepoint server.
style_customize.css - css filename containing the code to hide the alert/notif
div[role='alert']{
display: none;
}
seattle-test.html (modified seattle masterpage file)Also tried to put the link into the browser and was able to view the css file save in the master page library (master pages files location). Site publishing is enabled and I've tried to clear cache and use different browser somehow the css config won't reflect or be applied
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"[]>
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<!--SID:00 -->
<head runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<link rel=”stylesheet href="http://uat-vm/sites/test-classic/_catalogs/masterpage/Display%20Templates/custom/css/style_customize.css"/>