-
Notifications
You must be signed in to change notification settings - Fork 218
Open
Description
I'm trying to set a custom header background image for a SharePoint site using the PnP provisioning template by adding a PropertyBagEntry with the key BackgroundImageUrl. However, after provisioning, the image is not being applied or used by the site as expected.
PnP Template Snippet Used:
<pnp:PropertyBagEntries>
<pnp:PropertyBagEntry Key="BackgroundImageUrl" Value="/sites/branding/SiteAssets/bg.jpg" Overwrite="true" />
</pnp:PropertyBagEntries>
Notes
- Image URL is accessible and tested
- tested on multiple tenants
- Behavior is the same across all communication sites
- No visual change is observed on the site after provisioning
- Used invoke-PnPSiteTemplate -Path '' to apply template
Environment Info
- PnP PowerShell : 3.1.0
- Applied on: Communication site
- Used Windows 11 and used
- PowerShell version - 7.5.1
Related Context
There's an ongoing issue in the PnP PowerShell repo (#4959) regarding the Set-PnPWebHeader command, which could be related to or impact similar customization attempts.
Request
Please confirm:
-
Is BackgroundImageUrl still a supported property for a provisioning?
-
If not, what is the recommended approach to apply a custom background header using provisioning or scripting?
olivier-91
Metadata
Metadata
Assignees
Labels
No labels