[SPO] Creating a ‘modern’ homepage on an old team site

If you’re an Office365 user, you will probably have noticed by now that the new look & feel dubbed ‘modern’ (which is a stupid name, but aight…) is slowly but steadily making it’s way into more and more parts of the overall experience. I like the modern look. It’s crispy fresh, more in-line with modern UI’s like Googles Material and Microsofts Metro Modern UI. As an added benefit, the new look should play well with the SharePoint mobile app, bringing responsive design to the table so pages remain usable on mobile devices.

But what about legacy sites?

Just like we did, you might have some older sites which were created before this change rolled out. Those remain working just the same, but suddenly they look old in comparison with newly created sites. Especially since the home page of new team sites is now also a modern page with three web parts: news roll-up, quick links and an activity feed.

 

Recreating a modern home page

So here’s a few simple steps to give your old team sites a facelist:

  1. On the site, use the gear icon (top right) to open the settings menu and click “Add a page” to create a new page. This will create a new, modern, page within the normal SitePages library of your site.
    sharepoint_addpage
  2. The page requires a title so enter one.
  3. To have the same stuff on there as modern home pages, add the following web parts:
    • News headlines
    • Quick links
    • Site activity
  4. Click “save and close” to save the page.

 

Now you’ve got a new home page, but as you will see it doesn’t completely resemble the experience on newly created sites:

sharepoint_newhome

There’s a picture between the header and the page and the content, which is not there on the home page of new modern sites. Weird. Where is it coming from and how can I get rid of it?

 

SharePoint Designer to the rescue!

I first checked the properties of my new home page:

sharepoint_properties

 

Hmmm, not much there to change. So I got out my old friend SharePoint Designer and opened two instances: one to open the page I just created and one to check out the home page of a new team site which does not have the banner image. Here’s the source of the two pages:

Out of the box page

New page on old team site

There’s quite a few differences you can spot:

  • The ootb page does not have a <%@ Page  %> tag
  • The ootb page has the ‘Home’ page layout type
  • The page we created has some additional information (mainly BannerImageUrl for the image)

If you’re a little bit familiar with SharePoint publishing you’ll probably guess the difference is in the page layout, and it is. So simply update that node to Home instead:

 

And there we go:

sharepoint_okhome

Gone is the banner image! You now have a page which exactly looks like all of those pretty new team sites, set it as the default page of your site and it will blend right in!

Leave a Reply

Your email address will not be published. Required fields are marked *