SharePoint Online - Replace the top bar text using Javascript

This master page hack will help you replace the Office 365 text in the top Bar next to the app launcher

Put this code right above the </body> tag in your master page:

<!---Style the SharePoint top bar logo -->
<SharePoint:ScriptBlock runat="server">
if (typeof jQuery == 'undefined')
document.write('<script type="text/javascript" src="//"><' +         '/script>');
 var interval = setInterval(function(){
$('span.o365cs-nav-brandingText').html("<a href=''>My Custom Text</a>");
$('span.o365cs-nav-brandingText').attr("style","padding-top: 3px");
}, 1000); 
<!--- End Style the SharePoint top bar logo -->

Share on Google Plus

About Tom DeMeulenaere

Highly accomplished information technology professional with extensive knowledge in System Center Configuration Manager, Windows Server, SharePoint, and Office 365.
    Blogger Comment


Post a Comment

Note: Only a member of this blog may post a comment.