SharePoint2013顶部导航新闻源和skydrive应该如何去掉
中上面的新闻源和skydrive应该如何去掉,只要不显示这两个按钮就行,谢谢,请说的具体一些
2个方法
1,用SPD了吗?找到这行注释就可以了。
Option 1 - Remove the Control from Master Page. Open your Master page in SharePoint 2013 Designer and look for “SuiteLinksDelegate” delegate control.
In master page you would look for something like below -
<SharePoint:DelegateControl id=”ID_SuiteLinksDelegate” ControlId=”SuiteLinksDelegate” runat=”server” />
Simply Remove this or Comment it out to hide the links in the blue bar.
Option 2 - Using JavaScript to to hide the links Control. For this example we are just adding the JavaScript required to a Source Editor on a page. You can add this to your master page or to a delegate control to add it to all the pages in the site. To hide “NewsFeed, SkyDrive, Sites…” links add the below code to Edit source on a page.
Steps -
1. Edit the page and click on Insert tab.
2. click on Embed Code to add the below Javascript
JavaScript code?12345678910111213 <script language=”javascript”> _spBodyOnLoadFunctionNames.push(“HideBrandingsuite”); function HideBrandingsuite() { document.getElementById(‘ctl00_DeltaSuiteLinks’).style.visibility = ‘hidden’; } </script>
Option 3 - You can disable them at a Web application level. Use the following Powershell script to do this.
Powershell
$wa = Get-SPWebApplication
# This can be an empty string
$wa.SuiteBarBrandingElementHtml = ” ”
#Save your change
$wa.Update()
用IE的开发人员工具(IE8以上F12显示)找到这个控件,然后在模板页中删除该控件就可以了