I have a navigation defined in Site actions -> Look and Feel -> Navigations. I have a home page (Root page) - Home.aspx. Let's say I have created two more pages like A.aspx and B.aspx.

Now I would like to have my navigation on the home page, however I do not want my navigations to appear in the custom pages A & B. How can I do it?

  • Creating a Page Layout in SharePoint 2010link link – Niranjan Singh Nov 18 '11 at 10:37
  • I would for a special page layout that takes care of the differences as Ziga says. – Christian Stahl Nov 18 '11 at 11:22
  • Thank you Niranjan, for your link !! Will make use of it. Hi Chris thanks for your thoughts, will do it !! – Jithu Nov 21 '11 at 9:50

Create a new pagelayout or edit an existing one and in them add some css or javascript in the AdditionalHeadPlaceHolder which should hide the navigation. This is a better approach than adding css or javascript in the masterpage validating parameters to then decide wether or not elements should be hidden.


| improve this answer | |
  • Thank you for your help, How can I create a new page layout? – Jithu Nov 18 '11 at 9:12
  • @Jithu Look at the link I added to my answer – user2536 Nov 18 '11 at 9:30
  • That was just great, Thank you for sharing it, now one more related question - How can I select this created layout for only one page. All other pages should use the default layouts. – Jithu Nov 21 '11 at 9:49
  • @Jithu That really depends on how you create your pages. In order to create a page with a specific pagelayout (Through standard SP UI) you'll have to navigate to the Pages list on the site and in there select Add new page and here you select what pagelayout the new page should use. Hope this helped – user2536 Nov 21 '11 at 9:54

I would suggest you to use the css and javascript to hide the navigation from particular page.You may have to include the same in the page a&b

Thanks Dhanya

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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