Tags

Add below Javascript to a Content Editor Web Part on your List page, (Below your List Web Part) it will hide the both menus.

    <script>
        function HideDiv(name) {
            var div = document.getElementsByTagName('div');
            for (var i = 0; i < div.length; i++) {
                var str = div&#91;i&#93;.id;
                if (str.indexOf(name) >= 0) {
                    var viewInExplorer = div[i];
                    if (viewInExplorer != null) {
                        if (viewInExplorer.parentNode != null)
                            viewInExplorer.parentNode.removeChild(viewInExplorer);
                    }
                }

            }

        }

        HideDiv("ListActionsMenu");
        HideDiv("ListSettingsMenu");


    </script>
</script>
Advertisements