Show Files & Library Tabs


You want the Files and Library tabs to be visible when you browse to a page with multiple web parts.


JavaScript! Add this to a Script Editor web part on the same page.


        setTimeout(function() {

        var elem = document.getElementById("MSOZoneCell_WebPartWPQ2");

           if(elem != null) {

                var dummyevent = new Array();

                dummyevent["target"] = elem;

                dummyevent["srcElement"] = elem;


                _ribbonStartInit("Ribbon.Browse", true)


        }, 2000);


You may need to change “MSOZoneCell_WebPartWPQ2” to the web part ID of the web part you want to focus on. You can find this by opening dev tools.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s