Forum Discussion

Githendra23's avatar
Githendra23
Copper Contributor
Jun 14, 2022

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 !

 

  • farismalaeb's avatar
    farismalaeb
    Steel Contributor
    Hi
    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.
    • Githendra23's avatar
      Githendra23
      Copper 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 

      • farismalaeb's avatar
        farismalaeb
        Steel Contributor
        try to reupload the picture and ensure that the connected account have the permission to browse and navigate to the picture URL

Resources