Skip to main content
added 146 characters in body
Source Link
SP 2022
  • 4.1k
  • 3
  • 18
  • 41

You may try with the below CSS or PnP PowerShell.

CSS

div[class^="logoCell-119"]
 {
    display: none !important;
}

OR

img[src*='siteIcon'] { display: block;} 

Note:

  • Customizing or script editor web part is not supported in modern SharePoint online, so as an alternate we can deploy and make use of modern script editor web part.

PnP PowerShellHow to inject custom CSS or javascript code in modern SharePoint Online?

#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" - Values @{"PageLayoutType"="Home"}

We can use the modern script editor web part for this. The good thing is that we don't o need to develop this web part from the beginning, we can just deploy the modern script editor web part which is built on SPFx (alternate of classic script editor web part), we can get the modern script editor web part from here.

For details refer to the below article  :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

SharePoint Online Logo Link

You may try with the below CSS or PnP PowerShell.

CSS

div[class^="logoCell-119"]
 {
    display: none !important;
}

OR

img[src*='siteIcon'] { display: block;} 

PnP PowerShell

#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" - Values @{"PageLayoutType"="Home"}

For details refer to the below article  :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

SharePoint Online Logo Link

You may try with the below CSS or PnP PowerShell.

CSS

div[class^="logoCell-119"]
 {
    display: none !important;
}

OR

img[src*='siteIcon'] { display: block;} 

Note:

  • Customizing or script editor web part is not supported in modern SharePoint online, so as an alternate we can deploy and make use of modern script editor web part.

How to inject custom CSS or javascript code in modern SharePoint Online?

We can use the modern script editor web part for this. The good thing is that we don't o need to develop this web part from the beginning, we can just deploy the modern script editor web part which is built on SPFx (alternate of classic script editor web part), we can get the modern script editor web part from here.

For details refer to the below article:

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

SharePoint Online Logo Link

added 76 characters in body
Source Link
SP 2022
  • 4.1k
  • 3
  • 18
  • 41

You may try with the below cssCSS or PnP PowerShell.

CSS

div[class^="logoCell-119"]
 {
    display: none !important;
}

OR

img[src*='siteIcon'] { display: block;} 

 

PnP PowerShell

#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" - Values @{"PageLayoutType"="Home"}

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" -Values @{"PageLayoutType"="Home"}

For details refer to the below article :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

SharePoint Online Logo Link

You may try with the below css or PnP PowerShell.

img[src*='siteIcon'] { display: block;} 

 
#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" -Values @{"PageLayoutType"="Home"}

For details refer to the below article :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

You may try with the below CSS or PnP PowerShell.

CSS

div[class^="logoCell-119"]
 {
    display: none !important;
}

OR

img[src*='siteIcon'] { display: block;} 

PnP PowerShell

#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" - Values @{"PageLayoutType"="Home"}

For details refer to the below article :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

SharePoint Online Logo Link

added 293 characters in body
Source Link
SP 2022
  • 4.1k
  • 3
  • 18
  • 41

You may try with the below css or PnP PowerShell.

img[src*='siteIcon'] { display: block;} 


#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" -Values @{"PageLayoutType"="Home"}

For details refer to the below article :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

You may try with the below css or PnP PowerShell.

img[src*='siteIcon'] { display: block;} 


#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" -Values @{"PageLayoutType"="Home"}

For details refer to the below article :

How to Remove the Top Banner from SharePoint Online Modern Pages?

You may try with the below css or PnP PowerShell.

img[src*='siteIcon'] { display: block;} 


#Connect to SharePoint Online site

$SiteURL = "https://crescent.sharepoint.com/sites/marketing/2019"

Connect-PnPOnline $SiteURL -Credential

#Get the ID of the Page

Get-PnPListItem -List SitePages

#Change Page layout from "Article" to "Home"

Set-PnPListItem -List SitePages –Identity "2" -Values @{"PageLayoutType"="Home"}

For details refer to the below article :

How to Remove the Top Banner from SharePoint Online Modern Pages?

SharePoint Online, how to hide the SharePoint logo on a list using css or jquery

added 61 characters in body
Source Link
SP 2022
  • 4.1k
  • 3
  • 18
  • 41
Loading
Source Link
SP 2022
  • 4.1k
  • 3
  • 18
  • 41
Loading