kwizcom banner advertisement

Change Subsite Logo to Link Root Site in SharePoint 2013 / 2016 using jQuery

Requirement: Change Subsite logo to link root site in SharePoint 2013 / SharePoint 2016

Solution: By default, Subsite logo links points to its homepage. We can change site logo link in SharePoint 2013 using jQuery to point to root site.
sharepoint 2013 logo link to root
Change SharePoint 2013 logo link to root site:
Add a script editor or modify your master page to include this code
<script src="http://code.jquery.com/jquery-3.1.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
  $("#DeltaSiteLogo a").attr("href","http://intranet.crescent.com/");
});
</script>

Here is my another post with different approach: Change SharePoint 2013/2010 Site Logo Link to Root Site URL
Change Subsite Logo to Link Root Site in SharePoint 2013 / 2016 using jQuery Change Subsite Logo to Link Root Site in SharePoint 2013 / 2016 using jQuery Reviewed by Salaudeen Rajack on 2:47 PM Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.