Often times, we may need to make changes to master page files in a SharePoint site to customize a layout, add styling, CSS, custom web parts, etc. When the site was created using a default site template and content type, and your changes deviate from this, as you save you’ll be prompted with a warning basically saying “you do realize this is different from the original template, right?”. However, when you open the page in a browser, your users will have a status bar at the top with an option to “Revert to Site Template”, which will re-render the page and possibly remove the changes you’ve made, giving them the idea they weren’t done or done right.
This is an easy solution, which @ranaictiu mentioned in his blog post here.
Basically, open the site in SPD and open up the V4.master file in Master Pages. Locate the following section of code:
add the following style attribute to the first DIV:
This will hide all status bar notifications going forward. Now, if you want to show some status bar messages but just hide others a script like the following would handle that (put it in the <head> area of the master page):
Hope this helps!
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:
- 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 object inside of on your masterpage and replace it accordingly. This Stack Overflow post explains it very well.