What it is the recommended way to replace the "top link navigation" by hardcoded links? (in SharePoint 2010)
1 Answer
find below mentioned tags in SharePoint master page
<div class="s4-lp s4-toplinks">
please don't touch the code in-between these two tags.
Put style="display:none;"
to that DIV
tag like below.
<div class="s4-lp s4-toplinks" style="display:none;">
Put your static menu code above the hidden html DIV
tag
E.g.
Here is the sample code for top HTML navigation & Don't forget to attach CSS file for your Top Navigation within the master page.
<div class="navbar-header left-navbar">
<button type="button" class="navbar-toggle" id="left-navbar-toggle" data-toggle="collapse" data-target=".left-navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" id="left-navbar-brand" href="#">Left Menu</a>
</div>
-
I cannot find this tags in masterpage. This is 2010? Commented Apr 20, 2016 at 13:14
-
-
-
I have updated my answer as i had copied the content from my custom master page.– HardikCommented Apr 20, 2016 at 13:33
-
Is that working for you? as i had tried the same using SharePoint Designer in my 'v4.master'– HardikCommented Apr 20, 2016 at 13:45