How to achieve clicking on subsite logo to root site home page using CSOM in SharePoint Online?

Hello SharePointers,

In this blog, we will talk about the most interesting functionality to redirect parent root site on clicking site logo on the sub site. By default , by clicking site logo on sub site will take you to parent site.

Below is the script to be placed in subsite master page to achieve the desired functionality.

script src=”//” type=”text/javascript”>
<script type=”text/javascript”>
$(function () {
$(“#DeltaSiteLogo a”).attr(“href”,”http://mytest/”);

Happy SharePointing!!

Leave a Reply

Your email address will not be published. Required fields are marked *