Skip to main content

spo site chrome set

Set the chrome header and footer for the specified site

Usage

m365 spo site chrome set [options]

Options

-u, --siteUrl <siteUrl>

URL of the site collection to which you want to change the chrome header/footer

--headerLayout [headerLayout]

Header layout to set on the site. Options: Standard|Compact|Minimal|Extended.

--headerEmphasis [headerEmphasis]

Header background to set on the site. Options: Lightest|Light|Dark|Darkest.

--logoAlignment [logoAlignment]

Logo position when header layout set to Extended. Ignored otherwise. Options: Left|Center|Right.

--footerLayout [footerLayout]

Footer layout to set on the site. Options: Simple|Extended.

--footerEmphasis [footerEmphasis]

Footer background color to set. Options: Lightest|Light|Dark|Darkest.

--disableMegaMenu [disableMegaMenu]

Set to true to disable the mega menu and to false to enable it. Disabling mega menu results in using the cascading navigation (classic experience). Options: true|false.

--hideTitleInHeader [hideTitleInHeader]

Set to true to hide the site title in the header and to false to show it. Options: true|false.

--disableFooter [disableFooter]

Set to true to disable the footer on the site and to false to enable it. Options: true|false.

-h, --help [help]

Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is options.

--query [query]

JMESPath query string. See http://jmespath.org/ for more information and examples.

-o, --output [output]

Output type. json, text, csv, md, none. Default json.

--verbose

Runs command with verbose logging.

--debug

Runs command with debug logging.

Examples

Show site header in compact mode

m365 spo site chrome set --siteUrl https://contoso.sharepoint.com/sites/project-x --headerLayout Compact

Show site header in extended mode and display the logo on the right

m365 spo site chrome set --siteUrl https://contoso.sharepoint.com/sites/project-x  --headerLayout Extended --logoAlignment Right

Disable the footer on the site

m365 spo site chrome set --siteUrl https://contoso.sharepoint.com/sites/project-x --disableFooter true

Response

The command won't return a response on success.

CTRL + M