Forum Discussion
No full width column option in subsite?
Lee-Martin
How did you create the subsite? Through the UI?
Then you most likely created a team site, not a communication site.
Full-Width sections are not available on team sites.
There does not seem to be an option in the UI to create a communication site as a subsite.
So you need to use PNP PowerShell to connect to the parent site and execute these commands:
$Locale = 1031 #1033 English /1031 German
$SiteUrl= "MySubsite"
$Template = "SITEPAGEPUBLISHING#0" #Communication Site
New-PnPWeb -Title $SiteUrl -Url $SiteURL -Locale $Locale -Template $Template
Best Regards,
Sven
- SvenSieverdingJan 10, 2023Bronze Contributor
Hi Lee-Martin,
yes, you need to connect to the main site using PNP Powerhshell and then execute the upper commands to create a communication subsite.
Best Regards,Sven
- Lee-MartinJan 11, 2023Brass ContributorSvenSieverding is there a command to do this via SharePoint PowerShell?
- SvenSieverdingJan 11, 2023Bronze Contributor
Hi Lee-Martin ,
Yes
1) Install PnPPowershell (https://pnp.github.io/powershell/) (As local administrator)
Install-Module -Name PnP.PowerShell
2) Connect to your main site
Connect-PnPOnline "https://tenant.sharepoint.com/sites/yoursite" -Interactive
3) Create the subsite
New-PnPWeb -Title "My Communication Subsite" -Url "MyCommunicationSubsite" -Locale 1033 -Template "SITEPAGEPUBLISHING#0"
If you don't want to use PnPPowershell, but pure CSOM Powershell instead, then take a look at this article
https://www.sharepointdiary.com/2016/05/sharepoint-online-powershell-to-create-subsite.html
and the section "SharePoint Online: PowerShell to Create Subsite"
Best Regards,
Sven