Set_PnPWebHeader not working

Copper Contributor

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
Set-PnPWebHeader -HeaderBackgroundImageUrl "" -HeaderLayout Extended -HeaderEmphasis Strong


Thanks !


4 Replies
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.

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 

try to reupload the picture and ensure that the connected account have the permission to browse and navigate to the picture URL
it still doesn't work. idk if its sharepoint 2019 that has a problem