How to Add a Link to SharePoint 2013 Suite Bar?

Requirement: Add a link to SharePoint 2013 suite bar.

Adding link to suite bar in SharePoint 2013 can be achieved by following these simple steps:

  • Open your SharePoint 2013 site in SharePoint designer 2013. Navigate to the “Master Pages” folder.
  • Right-click on your master page (by default: Seattle.master) and choose “Edit file in Advanced Mode”
    adding link to suite bar in sharepoint 2013
  • Locate the text: id=”DeltaSuiteLinks” and add the below code just below the DeltaSuiteLinks tag to add a link to suite bar of SharePoint 2013. <span id=”CustomerSupport” class=”ms-core-suiteLink”> <a class=”ms-core-suiteLink-a” href=”http://support.crescent.com”> <asp:Label ID=”lblCS” runat=”server” Text=”Customer Support”></asp:Label> </a> </span> add link to sharepoint 2013 suite bar
  • Save and close SharePoint designer. This adds a link to SharePoint 2013 suite bar, and you should see the new link as below:add link to suite bar sharepoint 2013

Edit and Place this jQuery on your master page, just above closing of HEAD tag (</head>).

<script type="text/javascript" src="https://code.jquery.com/jquery-1.2.6.min.js"></script>
<script type="text/javascript">
 $(document).ready(function() {
 //Define new links
  var newLinks = "<li class='ms-core-suiteLink'> \
   <a class='ms-core-suiteLink-a' href='http://extranet.crescent.com'>Extranet</a> \
   </li> \
   <li class='ms-core-suiteLink'> \
   <a class='ms-core-suiteLink-a' href='http://support.crescent.com'>Customer Support</a> \
   </li> ";
 
  $('.ms-core-deltaSuiteLinks').prepend(newLinks);
  alert('works');
  });

</script>

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply