- From the Snippet Gallery, copy and paste the default SiteLogo code snippet into your master page into the appropriate place you want it to be displayed.
- In the SiteLogo code, search for SharePoint:SPSimpleSiteLink to find the relevant opening and closing tags. Now simply change the tag names toSharePoint:SPLinkButton instead.
- Then simply add the attribute NavigateUrl to this tag and set it’s value to “~sitecollection/”.
Example
Default snippet code
- <!--MS:<SharePoint:SPSimpleSiteLink runat="server" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">--> ... <!--ME:</SharePoint:SPSimpleSiteLink>-->
Should become this
- <!--MS:<SharePoint:SPLinkButton runat="server" NavigateUrl="~sitecollection/" CssClass="ms-siteicon-a" ID="x7917ecc8c38d4bd69f58e338eab54c8c">--> ... <!--ME:</SharePoint:SPLinkButton>-->