- So, as I’m building out our company intranet in SharePoint 2010, I didn’t like the fact that when I was nested several pages deep in a particular site, when I clicked on the logo on the top left of the page it took me to the root of that particular site. I figured it would take me to the “home” page, or the root site collection. Turns out this is handled in the master page of that website. Here’s how to change that:
- In SharePoint Designer, open the website, then click on the Master Pages link in the Site Objects section on the left.
- Locate the master page your site is using (in my case, it was v4.master) and click to open.
- When the page opens, locate the Customization box and click “Edit file”
- Scroll through the code until you see the first instance of the following element:
<SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" id="onetidProjectPropertyTitleGraphic">
- It’s about halfway down the page, in the HTML table cell with the CSS class of “s4-titlelogo”. This is the element for the logo on the page, at the top left. Normally, you click on that and it takes you to the main page of that particular site. Well, if you want to go to the root of the site collection (or home page, or any page for that matter), just replace the ~site/ with the site of your choice! Make sure it’s well-formed (http://server/site).
- Save the file. You may be prompted with a warning about deviating from the default template. Acknowledge the warning and the changes will be instantaneous!
Hope this helps!
UPDATE: For SharePoint 2013, use the same behavior but locate the