Unable to remove site contents link from left hand navigation SharePoint 2016
-
21-01-2021 - |
Question
I am trying to remove site contents link from left side navigation for a subsite and I am unable to do it via Masterpage. I have edited the Seattle.master master page from designer and set it as default master page but nothing works. I have commented the below codes
<div class="ms-core-listMenu-verticalBox">
<SharePoint:ClusteredSPLinkButton
runat="server"
id="idNavLinkViewAll"
PermissionsString="ManageWeb"
NavigateUrl="~site/_layouts/15/viewlsts.aspx"
Text="<%$Resources:wss,AllSiteContentMore%>"
ToolTip="<%$Resources:wss,AllSiteContentMore%>"
accesskey="<%$Resources:wss,quiklnch_allcontent_AK%>"
CssClass="ms-core-listMenu-item ms-core-listMenu-heading" />
and also tried this css but doesn't work either
<style type="text/css">
.ms-core-listMenu-item, .ms-core-listMenu-item:link, .ms-core-listMenu-item:visited, .ms-tv-item:link, .ms-tv-item:visited, .ms-tv-header:link, .ms-tv-header:visited {
color: #666666;
text-decoration: none;
display: none;
} </style>
<style type="text/css">
.ms-splinkbutton-text a[title="Site contents"] {display: none !important ;}
</style>
I followed the instructions from link as well but it was of no use: Hide Site Contents Link from SharePoint 2013 Quick Launch
Please suggest a way to remove site contents link from left hand navigation.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange