Hide a home tab for root site SharePoint 2013 Server

As in title:

I was wondering if you could help me with my issue as I am not a designer and seem to have some trouble with a simple requirement.
I need to hide a first home tab in a top nav menu for a site collection root page. It is there, next to a logo which also works as a home site link. I accomplished this in SP2010 adding simple CSS to the default CSS file:

<style type="text/css">
 .s4-tn li.static > a{ 
display: none !important; 

.s4-tn li.static > ul a{ 
display: block !important; 
}
 </style>

In SP2013 Server, in site collection with publishing features activated- it does not work. I edit corev15.css but nothing happens! What should I do? Regards Lukas

July 11th, 2013 1:04pm

Hi Lukas,

Have a  try to use the JavaScript.

http://social.technet.microsoft.com/Forums/en-US/78906089-4954-4096-a081-04cc19da162d/sharepoint-home-tab-hiding-in-java-script

Best Regards.

Free Windows Admin Tool Kit Click here and download it now
July 12th, 2013 3:27am

Hi Kelly,

Thanks for the reply!

Although javascript works just fine, it is not particularly useful in my scenario. My root site isn't called 'Home'. It is named after the site collection and it is vital that the name of that page stays as it is. This way, users will see a meaningful name of their site (as opposed to 'Home') and the internet browser will also contain the name in the tab which will enhance user experience when switching between IE tabs.

Furthermore, by hiding a particular word/phrase by injecting javascript into a page we will hide other objects e.g. titles of particular webparts, subjects of discussion posts etc. containing that name...

Therefore, I cannot rename the page to 'Home' and I cannot hide the existing page name as it will be used throughout the page and cause issues.

I would definitely go the CSS route. It worked for me in SP2010 Server. For some reason in 2013, they do not want you to edit master pages that easily. Maybe they changed classes too. I do not know, i am not a designer.

The internet is full of step-by-step guides on how to hide a home tab using CSS in SP2010. I could not find one concerning SP2013.

Anyone up for the challenge?

Regards

July 12th, 2013 5:53am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics