• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

How do you change the logo for a site template in SharePoint 2010?

Hello,
I am looking for a way to change the logo of a site template. When you go to "Site Action" - "More Options" - "Site", I can see the site template that I created. How do you change the logo of the template so that it shows something else then the default image? I believe I will be using SharePoint Designer or VS.net. I would prefer using SP Designer.

Any help would be great.

Thanks,
0
kixelsyD
Asked:
kixelsyD
1 Solution
 
Tim EdwardsIT Team Lead - Unified Communications & CollaborationCommented:
Go and edit your master page(in sharepoint designer or if it is place on your vs) which you can find sharepoinnt icon tag like this

  <SharePoint:SiteLogoImage id="onetidHeadbnnr0"
 LogoImageUrl="/_layouts/images/titlegraphic.gif" runat="server"/>

change the LogoImageUrl to your Url.
0
 
Jayaraja JayaramanCommented:
Below is some code that should help you with this task.  It is not too pretty, but it will do the job.  The first part is going to display the Site Logo for the site collection in question which is identified by the first $sitename.

$webapp = Get-SPWebApplication http://intranet
foreach ($SPSite in $webapp.sites)

$sitename= "http://bentest"
$site=new-object Microsoft.SharePoint.SPSite($sitename)
foreach($web in $site.Allwebs)
{
write-host $web.SiteLogoUrl
}
$site.Dispose()

Change the site image for all sites in a given Site Collection

$sitename= "http://bentest"
$sitelogo= "http://bentest/site_documents/sitelogo.jpg"
$site=new-object Microsoft.SharePoint.SPSite($sitename)
foreach($web in $site.Allwebs)
{
$web.SiteLogoUrl=$sitelogo
$web.Update()
}
$site.Dispose()
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now