Hide Edit Links option in SharePoint 2013/2016/Online

Hide Edit Links option in SharePoint 2013 or SharePoint 2016

In this SharePoint 2013 customization tutorial, we will discuss how to hide “EDIT LINKS” options in SharePoint 2013/2016/Online site. We will see how can we hide EDIT LINKS using CSS in SharePoint 2013/2016/Online.

Objective:
In SharePoint 2013 / SharePoint 2016 as soon as you create a site collection you will see an option to edit links in both top navigation and quick launch as shown in below screenshot.

SharePoint deveopment training course
Hide Edit Links option in SharePoint 2013 or SharePoint 2016
Hide Edit Links option in SharePoint 2013 or SharePoint 2016

The issue with this link is any contributor can edit the links as part of top navigation and quick launch. This will create inconsistency in navigation and difficulty in navigation.

This we can address in various ways 2 of the easiest ways are:

  • Add CSS class in CEW to hide the edit link option in all the user navigation pages
  • Incorporate CSS class in the master page

Let us walk through both the scenarios.

Hide EDIT LINKS using CSS in CEW (Content Editor WebPart)

In SharePoint 2013, we can change the UI / hide options using CSS, follow the below steps to achieve the same:

1. Edit page and add a content editor web part in SharePoint.

hide edit links in sharepoint 2013
hide edit links in sharepoint 2013
hide edit links in sharepoint
hide edit links in sharepoint

2. Add the below CSS in content editor web part or script editor web part.

<style>
.ms-displayInlineBlock{
display: none;
}
</style>

sharepoint 2013 hide edit links css
sharepoint 2013 hide edit links css
sharepoint online remove edit links
sharepoint online remove edit links

3. The output will be as below

hide edit links in quick launch left nav in sharepoint 2013
hide edit links in quick launch left nav in SharePoint 2013

Hide EDIT LINKS using Incorporate CSS class in the master page in SharePoint 2013

As we all know when we make some change in master it will get applied to all the pages automatically. Follow the below steps to incorporate CSS class in the master page in SharePoint 2013.

1. Open site using SharePoint designer 2013.

how to hide links in sharepoint 2013
how to hide links in sharepoint 2013

2. Copy and paste the “seattle.master” and rename it as “seattle_New.master”
3. Edit the master page in advanced mode as shown below.

sharepoint 2016 hide edit links
sharepoint 2016 hide edit links

4. Add the CSS style in home tag

<style>
.ms-displayInlineBlock{
display: none;
}
</style>

hide edit links in sharepoint 2016
hide edit links in sharepoint 2016

5. Apply the updated master page as default master page into the SharePoint 2013 site.

You may like following SharePoint master page tutorials:

Hope this helps you to hide EDIT LINKS in SharePoint 2013 site using css.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

About Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 13+ years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

View all posts by Krishna Vandanapu →