Forum Discussion
Ravi Chandra
Jul 07, 2018Copper 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 ever...
Ravi Chandra
Copper Contributor
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
dnite
Jun 05, 2019Copper Contributor
Hello,
I have root site with template publishing and another 50 subsites (below) with teams template (modern or classic ) . If i want to change only the root site template to communication without affecting the rest of the sub-sites how to proceed ?
Thank you