Forum Discussion
Githendra23
Jun 14, 2022Copper Contributor
Set_PnPWebHeader not working
Hi everyone !
I'm trying to change the background image of the header on my sharepoint site but i can't seem to make it work. Am I doing something wrong ?
Connect-PnPOnline -Url https://XXX.sharepoint.com/sites/test21
Set-PnPWebHeader -HeaderBackgroundImageUrl "https://XXX.sharepoint.com/sites/DataroomAjup/SiteAssets/__extendedHeaderBackgroundImage__getsitelogo.jpg" -HeaderLayout Extended -HeaderEmphasis Strong
Thanks !
- farismalaebSteel ContributorHi
I tried the code and it work fine on my end.
what error are you getting.
the only thing I notice that if the path is incorrect the cmdlet wont return any error, and it looks it was OK, but its not.- Githendra23Copper Contributor
Thats the problem, i've put the correct path meaning a relative path but it still doesn't work. So i'm a bit confused. farismalaeb
- farismalaebSteel Contributortry to reupload the picture and ensure that the connected account have the permission to browse and navigate to the picture URL