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?
Do you mean the site logo? Check out SPWeb.SiteLogoUrl property. You probably want to set it as:
site.RootWeb.SiteLogoUrl = pictureUrl;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With