Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the sharepoint icon for a site programmatically

Tags:

sharepoint

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?

like image 291
Justin Avatar asked May 11 '11 18:05

Justin


1 Answers

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

site.RootWeb.SiteLogoUrl = pictureUrl;
like image 93
Nemanja Trifunovic Avatar answered Sep 28 '22 09:09

Nemanja Trifunovic