Forum Discussion
Lee-Martin
Jan 10, 2023Brass Contributor
No full width column option in subsite?
I've created a subsite for my communications night, and I need to create a full width column to house my hero content? Is there any reason why this is not available to me? Thanks
Lee-Martin
Jan 10, 2023Brass Contributor
Thanks, I just created the subsite through the UI as the main site is a Communication site - can I just add a Communication site as a subsite using these commands?
SvenSieverding
Jan 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- Lee-MartinJan 11, 2023Brass ContributorSvenSieverding
I'm having access issues with PnP, but I've got SharePoint Powershell working - I've already got the URL you've shared with me.
However the PnP example you've shared seems a lot more simple than both the PnP and SharePoint Powershell examples here?