NetworkBranding defines the branding and color scheme applied to Experience Cloud login pages. The associated site is represented by Network, but login branding is a separate component from the site's core configuration. Reproducing the site configuration alone does not necessarily reproduce its login-page appearance.
Do not treat NetworkBranding as the complete Experience Builder theme. Branding properties for Experience Builder sites belong to BrandingSet. NetworkBranding includes login-page settings, references to branding documents, and a required site color palette.
Key Elements
| Element | What the Element Controls |
|---|---|
network |
Names the associated Network. This association is separate from the branding component's own identity. |
loginLogo |
References the Document used as the login-page logo for external users. |
loginLogoName |
Records the login logo's name. It is not the Document reference stored in loginLogo. |
loginBackgroundImageUrl |
Sets the login-page background image. Supports a fixed URL, a dynamic URL containing {expid}, or an uploaded image. |
staticLogoImageUrl |
Sets the login-page logo image path. Despite its name, it supports fixed URLs, dynamic URLs containing {expid}, and uploaded images. |
loginRightFrameUrl |
Sets the content URL for the login page's right frame. Supports a fixed URL or a dynamic URL containing {expid}. |
loginFooterText |
Sets the text displayed in the login-page footer. |
loginPrimaryColor |
Sets the Login button's background color. |
loginQuaternaryColor |
Sets the login-page background color. This is distinct from the site page background controlled by quaternaryColor. |
pageHeader |
References a Document displayed in the site page header. Accepts .html, .gif, .jpg, or .png files. |
pageFooter |
References a Document displayed in the site page footer. Requires an .html file. |
Behavior and Constraints
Dynamic URLs resolve at runtime
The {expid} placeholder represents the experience ID. When it appears in loginBackgroundImageUrl, staticLogoImageUrl, or loginRightFrameUrl, Salesforce resolves the URL at runtime using that parameter's value.
The same stored URL template can therefore produce different images or frame content for different experience IDs. Comparing metadata alone cannot establish the final content without knowing the runtime parameter value. Uploaded-image support is documented for loginBackgroundImageUrl and staticLogoImageUrl; loginRightFrameUrl is documented as a fixed or dynamic content URL.
The site palette remains required
The login colors do not replace the required site palette. All nine of these elements remain required, even when the intended change concerns only login branding:
-
primaryColor: the active tab color.primaryComplementColor: the font color used with it. -
quaternaryColor: the background color for site pages.quaternaryComplementColor: the font color used with it. -
tertiaryColor: the background color for section headers on edit and detail pages.tertiaryComplementColor: the font color used with it. -
zeronaryColor: the header background color.zeronaryComplementColor: the font color used with it. -
secondaryColor: the color used for the top borders of lists and tables.
In particular, changing loginPrimaryColor changes the Login button, not the active tab. Changing loginQuaternaryColor changes the login-page background, not the site page background.
Deployment and Retrieval
NetworkBranding components use the .networkBranding suffix and reside in the networkBranding folder. The type supports the * wildcard in package.xml. A manifest can select named branding components or use * under the NetworkBranding type.
The type extends MetadataWithContent and inherits content and fullName. Treat the component's content payload, its identity, and its network association as separate concerns. Do not infer the branding component's identity solely from the associated site's name.
Determine deployment scope from the actual references and the destination's existing components. loginLogo, pageHeader, and pageFooter reference Document components. URL-based branding uses a different dependency mechanism; a URL setting is not itself one of those Document references. A component does not necessarily use every supported asset mechanism.
When login branding does not move with a site, check whether retrieval included NetworkBranding separately from the site's core configuration. When a logo does not deploy as expected, the content payload can also matter, not just loginLogo and loginLogoName. The scoped reports below describe both cases.
A reported packaging limitation is not a prohibition on Metadata API deployment. In particular, the no-namespace unlocked second-generation package report below describes login branding configured after installation, not a rule that all deployments require manual configuration. See the Salesforce metadata definition for the component's file layout and fields.
Relationships
The deployment relationships are the associated site and any referenced branding documents. BrandingSet addresses Experience Builder branding, but that distinction does not make it an element reference from NetworkBranding. Inheritance from MetadataWithContent supplies the content and identity fields rather than a reference to another deployed component.
References
Documentation Inconsistencies
The official description calls pageFooter an image, but its file constraint requires an .html file. Do not apply the image-file extensions accepted by pageHeader to pageFooter.
Reported Issues
-
A logo problem may require changing the content file, not the logo-reference fields. In a December 2023 report about Lightning Web Runtime (LWR) change-password branding, the author reported resolving the problem by placing the logo image itself in the retrieved component's
.networkBrandingcontent file while retaining the logo settings. This is a scoped workaround, not a general CMS-reference syntax or component-naming rule. LWR logo content-file workaround. -
Package installation may leave login branding as a separate administrative task. A no-namespace unlocked second-generation package implementation, documented in a report updated in November 2023, reported that
NetworkBrandingcould not be packaged. The author configured the logo, colors, and footer afterward through Workspaces > Administration > Login & Registration. The implementation carried the logo in a static resource, then downloaded and uploaded the image through that interface; the author did not try a URL-based logo. This report does not establish a universal packaging limitation or require the same workaround for every implementation. Unlocked package login-branding report. -
Retrieving other site components can leave the standard login logo and colors behind. In a 2020 report, a site moved between sandboxes without changes made through Login & Registration. The author reported recovering those changes by adding
NetworkBrandingto the retrieval manifest. Retrieving standard login-page changes. -
A missing-network branding error can accompany a wider site dependency failure. In a 2021 deployment to a clean scratch org, the branding component reported a missing
Network, while the network component reported a missingSiteDotCom. A respondent described creating a site with the source site's name and template before deploying dependencies and site metadata. This is a reported deployment sequence, not a universal requirement to precreate sites. Missing network during site deployment.
Common Questions
Why did my Experience Cloud login logo and colors not deploy?
Login branding is separate from the core Network configuration. Check whether the retrieval and deployment included NetworkBranding, its actual document references, and its content payload. A reported standard-login-page migration recovered the missing changes by adding this type to the manifest.
Can I retrieve all NetworkBranding components with a wildcard?
Yes. NetworkBranding supports * in package.xml. Its components reside in the networkBranding folder and use the .networkBranding suffix.
Can staticLogoImageUrl contain a dynamic URL?
Yes. Despite its name, staticLogoImageUrl supports dynamic URLs containing {expid}. Salesforce resolves the experience ID at runtime. The element also supports fixed URLs and uploaded images.
Which fields control the Login button and login-page background colors?
loginPrimaryColor controls the Login button background, and loginQuaternaryColor controls the login-page background. They are separate from the required site palette, including primaryColor and quaternaryColor.
Can pageFooter reference a PNG or JPG file?
No. The documented constraint requires an .html file for pageFooter, despite describing it as a footer image. pageHeader accepts .html, .gif, .jpg, or .png files.