lundi 1 décembre 2014

how to upload css/js code in SharePoint online



I've below css code to hide suite bar. Could you please help me to how to apply this code for my site. I tried two options but in both case the result is not showing. 1) Copied below code in notepad and save with name in duble column "suitebar.css" and save in site asset library (not sure how to refer) 2) Then second option edit the home page and under Insert option --> Embed Code. Paste this below code but I think this is also not right procedure. Please advice.


/* Hide the left Suite Bar and right ribbon areas */


suiteBarLeft {



display: none;


}


RibbonContainer-TabRowRight {



display: none !important; /* !important needed to override SharePoint inline style */


}


/* Float the Suite Bar to remove from document flow and allow ribbon to move up */


suiteBar {



float: right;
width: auto;


}


/* Alter stacking order and set positioning for ribbon */


s4-ribbonrow {



z-index: -1; /* Allows Suite Bar to show on top of Ribbon */
position: static; /* Secret sauce - needed to maintain ribbon functionality */


}








0 commentaires:

Enregistrer un commentaire