cancel
Showing results for 
Search instead for 
Did you mean: 

change site's icon in the dashboard

lgonzalez
Champ in-the-making
Champ in-the-making
Hello, i want to change the site's icon in the dashboard, like show you, in the red circle. I' am trying to add javascript code, but i can't
3 REPLIES 3

crono40
Champ on-the-rise
Champ on-the-rise
You want to change it for all your sites ? If it's the case, just replace the file named generic-site-32.png with your new image and restart the server.

lgonzalez
Champ in-the-making
Champ in-the-making
hello, i want to change by site, for example site1 > pic1.jpg site2 > pic2.jpg

crono40
Champ on-the-rise
Champ on-the-rise
Ok. In this case, I think that you have to modify the my-site.js (and my-site-min.js) file. In the renderCellIcon function, the link to the image is created. You have to do a switch, in function of the site Name.

case "site1" : img = site.isInfo ? "help-site-bw-32.png" : "filetypes/site1.png";
case "site2" : img = site.isInfo ? "help-site-bw-32.png" : "filetypes/site2.png";