This snippet replace the Suite Bar “Office 365” text in SharePoint Online

(You need jQuery in your master)

6 responses to “This snippet replace the Suite Bar “Office 365” text in SharePoint Online”

  1. James says:

    Hi Frederik,

    Thanks for posting this! It was working great for me until a week or so ago… do you know if anything has changed on Office 365 recently that would stop this working?



    • Hi James, im on Vacation so don’t know. Did you add the script in the default master or a custom? Have you checked it’s still there and that your page load jQuery?

      Any one else know if there has been any changes?

      • James says:

        So sorry I disturbed you on your vacation! Hope you’re having a great time.

        The script was in a custom master I created from seattle.master and the script was still there. I never added a reference to jQuery myself, but teaching myself to do so and adding that in didn’t fix it.

        After playing around with this for a while, I managed to fix it. I’m a complete newbie with all this stuff (even had to figure out how to use that F12 tool for the first time in order to sort this), so I’m quite proud of myself!

        To fix it I had to do two things:
        1) change the id from suiteBrandingBox to O365_MainLink_Logo
        2) move the script (originally I had it just before , but now it is right at the end before

        Like I said, I’m new to all this so don’t really understand why this has fixed it. Any idea why this did the trick? I’d love to hear your thoughts. I guess MS have just changed some things on Office365?

        Looking forward to hearing from you once you return from your vacation!

  2. James says:

    Hi Frederik,

    Sorry, 2) didn’t come out quite right above, I meant to say I’d moved the script to just before the /body tag. Previously it was above a div with id “suiteBarRight”.

    Unfortunately, it now seems that this script only works in Internet Explorer (admittedly I don’t know if it worked in other browsers before…)

    In chrome the old Office 365 logo remains, and F12 shows the following error: “Uncaught TypeError: Cannot set property ‘innerHTML’ of null ”

    Is it possible in other browsers? Any idea how?

    Many thanks,


Leave a Reply

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