SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a top navigation on my home page which holds links to subsites.
Only on the top navigation on the home page, it shows a link called "Edit links" at the end of the navigation. Upon clicking it, one can edit the links in the navigation.

The thing is that I don't want this to be there, this "Edit links" option.

All subsites inherit this top navigation, yet the subsites do not show the "Edit links" link. What do I need to do in order to get rid of the "Edit links" option for the home page?
Should I edit the master page of the home page? Or is there another way to do this?

share|improve this question
up vote 1 down vote accepted

There might be an easier way, but I was able to hide it by adding the following lines to the masterpage:

<style type="text/css">
#DeltaTopNavigation .ms-core-listMenu-root .ms-listMenu-editLink {display: none;}
</style>

Hope that helps.

share|improve this answer
    
This does indeed hide it, thanks! – Magali Apr 11 '13 at 8:00

The reason there is an Edit Links hyperlink there is because you have the permission to do so, most likely by have the Design permission. If your users do not have that permission level access, they will not see the link.

Also, when creating a subsite, there is an option to display the subsite on the parent's horizontal navigation, you may deselect the option so that your subsite does not appear on the parent site.

If by all means, you must remove that even for people with Design or higher permissions, then you may implement the many suggested CSS. For my implementation, I would use:

<style type="text/css">
    #DeltaTopNavigation > .ms-navedit-editArea { display: none }
</style>

DeltaTopNavigation is the ID belonging to the div holding all the links of the top horizontal navigation.

ms-navedit-editArea is the class used on a list item for any of the Edit links within a navigation.

The CSS does the following: Look for the element with ID DeltaTopNavigation, then look for the child elements which contains a classname of ms-navedit-editArea, and remove from display.

share|improve this answer

Quickest and easiest way I found to remove the edit links option was by adding the Script Editor web part, then placing this code in it:

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

Hope that helps.

share|improve this answer
<style type="text/css">
#DeltaTopNavigation .ms-core-listMenu-root .ms-listMenu-editLink
{
Visibility:Collapse;
}
</style>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.