Home

Convert Classic root site to Communication site

Ravi Chandra
New Contributor

Convert Classic root site to Communication site

In our recent intranet projects, we recommend users to go with main Intranet site using communication site template and we expect that to be the root site collection of the tenant.  The issue is every tenant root site collection is a based on classic team site template and we will never be able to convert it to a communication site template. Apart from this big limitation, it gives other design challenges like missing global navigation, left nav etc.

 

One of the blog says about create a communication site, save the template as wsp. Delete the root site collection and recreate the site using the communication template that we saved earlier. Is this method is approved by Microsoft?

 

https://hangconsult.com/2017/06/29/change-sharepoint-online-root-site-collection-to-use-the-new-comm...

 

Ravi

8 Replies

Re: Convert Classic root site to Communication site

No, this method is not supported by Microsoft....might I ask why you don't simply use modern features in the root site collection in SPO

Re: Convert Classic root site to Communication site

As Juan said not supported. In the near future they are adding the ability to change the navigation to either left, top or none. This will let normal left nav looking modern sites look like comm sites. Just have to wait for that feature.

What I’ve done is just created a comm site as our landing page and pointed everyone to it. And on the toot collection made a classic page he home page and put a redirect on it to redirect to the comm site. Been working fine.

Re: Convert Classic root site to Communication site

Thank you Juan and Chris,

 

As of now, I will take the redirect option, so users land on the Comm site from root site collection.

 

Thanks!

Ravi

Re: Convert Classic root site to Communication site

How do you make this redirect work. Can you provide a step-by-step approach?

Re: Convert Classic root site to Communication site

Yeah. Tomorrow when I get in. But it’s just a response redirect script web part on the homepage. Just make a 2nd blank page and put the redirect script on it. Then set it as homepage. That way you can always get back to your default.aspx if you have too. Anyway if you need more instruction let me know and I’ll do some screens and the script.

Re: Convert Classic root site to Communication site

Super simple...

 

On the root site collection add a classic page and add a script editor webpart. Paste the below code. Update the site URL.

=================================

<script>
var wikiInEditMode = document.forms[MSOWebPartPageFormName]._wikiPageMode.value;
if (wikiInEditMode == "Edit")
{
// wiki page is in edit mode
}
else
{
// wiki page is not in edit mode
location.href = 'NEW SITE URL';
}
</script>

===========================================

Ravi

Re: Convert Classic root site to Communication site

There ya go. Even better way ;).

Re: Convert Classic root site to Communication site

Related Conversations
Schedule Times to Sum the Hours Scheduled
Snoopydoodle in Excel on
4 Replies