SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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 designed a vertical main menu for my sharepoint environment:


It works fine until I go into the site settings. Than somehow the orientation changes from vertical back to horizontal.

Why does this happen? Do I need to hide the global menu inside the site-settings view?

To clarify my question: It's a SharePoint 2013 and the following pictures demonstrated how it looks (first) and how it should look (second). wrong horizontal orientation

right vertical orientation

share|improve this question
up vote 3 down vote accepted

The "/_layouts/15/settings.aspx" has a user control "~/_controltemplates/15/TopNavBar.ascx" included in top navigation and it will hard code a top navigation, override the one you have set in the master page. Like this:

  CssClass="s4-tn" />

The only way to get around this, I think, is to use alternate header which is an aspx page that will render the header and the global navigation on all pages defined.

A blog post about Alternate headers here

==== OR =====

you can take the global navigation away from it's content placeholder and hide the placeholder but then you will probably get some other navigation issues where the navigation source is not set properly.


share|improve this answer
This works fine if I just change it in the file ~/_controltemplates/15/TopNavBar.ascx to vertical. Is this an acceptable way to change it, or will it bring up any other problems? – Jan Hommes Mar 6 '13 at 9:26
You should NEVER change an out of the box file. Then you can get issues when a service pack update will overwrite your changes. Then I think it's a better approach to remove the topbar from the contentplaceholder, hide that placeholder and then put it inside of your own placeholder. Then the topnavigation will look the same everywhere you use your master page BUT that may not be what you want. – Magnus Hansson Mar 6 '13 at 9:33
thanks, it works by removing the contentplaceholder. My goal is to get the same Navigation on each page. Why should I not want this? Is there any problem with a global navigation? – Jan Hommes Mar 6 '13 at 10:30
The problem can be that you hide some navigation functionality that is out of the box, I haven't explored 2013 enough yet to tell you if this is a fact but some parts of SharePoint could be require access to that content placeholder – Magnus Hansson Mar 6 '13 at 16:01
I heard there was a bounty for 50 on this one ;) anything else I can help you with? :) – Magnus Hansson Mar 7 '13 at 6:31

The Site Settings has another Master Page than the "normal" page.

Go to "Site Settings" => "Master Page". Then under System Master Page select the same as the Site Master Page.

share|improve this answer
sorry, this settings is just a list with all Master Pages (it's a 2013 sharepoint!). The rest of the settings pages all have the correct master-page style, only the main settings page not and there only the main navigation is orientated wrong... – Jan Hommes Mar 4 '13 at 13:00

Your Answer


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.