Change SharePoint 2013 Logo url from sub site to Site collection top site

in the master page(seattle.master)

<SharePoint:AjaxDeltaid=“DeltaSiteLogo”BlockElement=“true”runat=“server”>

<SharePoint:SPSimpleSiteLink CssClass=“ms-siteicon-a”runat=“server”id=“onetidProjectPropertyTitleGraphic”>

<SharePoint:SiteLogoImageCssClass=“ms-siteicon-img”name=“onetidHeadbnnr0”id=“onetidHeadbnnr2”LogoImageUrl=“/_layouts/15/images/siteIcon.png?rev=23”runat=“server”/>

</SharePoint:SPSimpleSiteLink>

</SharePoint:AjaxDelta>

change SPSimpleSiteLink into SPLinkButton and add NavigateUrl=”~sitecollection/”

<SharePoint:AjaxDeltaid=“DeltaSiteLogo”BlockElement=“true”runat=“server”>

<SharePoint:SPLinkButton NavigateUrl=”~sitecollection/” CssClass=”ms-siteicon-a” runat=”server” id=”onetidProjectPropertyTitleGraphic”>
<SharePoint:SiteLogoImage CssClass=”ms-siteicon-img” name=”onetidHeadbnnr0″ id=”onetidHeadbnnr2″

LogoImageUrl=”/_layouts/15/images/siteIcon.png?rev=23″ runat=”server”/>
</SharePoint:SPLinkButton >

</SharePoint:AjaxDelta>

SharePoint search result webpart don’t use this masterpage.

So have to change the search result masterpage in “/_catalogs/masterpage/SearchResults.aspx” for updated logo link url.

Advertisements
2 comments
  1. Adrian said:

    Hi,

    After modified the SearchResults.aspx I get this error:

    Code blocks are not allowed in this file.

    How can I fix it?

    Regards,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: