SharePoint: Hide page title using javascript

Published on

Add a CEWP or SEWP and add the following code: <script language=”javascript” type=”text/javascript”> ExecuteOrDelayUntilScriptLoaded(retrieveListItemsInclude,’sp.js’); function retrieveListItemsInclude() { document.getElementById(“pageTitle”).style.display=’none’; } </script>

SharePoint 2013 O365: Display top navigation on search results page

Published on

  Elio Struyf has created a handy piece of JavaScript that will display the global navigation on your search results page as by default its hidden. <script> var refElm = document.getElementsByClassName(‘ms-searchCenter-refinement’); if (refElm.length > 0) {   // Unhide the title row   document.getElementById(‘s4-titlerow’).setAttribute(‘style’, ‘display:block !important’);   // Set the Site Title   document.getElementById(‘DeltaPlaceHolderPageTitleInTitleArea’).innerHTML = … Continue reading SharePoint 2013 O365: Display top navigation on search results page