8
votes

I am needing to change the site icon for every site in a site collection in sharepoint 2007. I already know you can change it from Site Settings -> Look and Feel. Is there a way to do this programmatically?

1

1 Answers

10
votes

Do you mean the site logo? Check out SPWeb.SiteLogoUrl property. You probably want to set it as:

site.RootWeb.SiteLogoUrl = pictureUrl;