Newer Version Available
Head Markup
With the Build Your Own (LWR) template, you have complete control over the head markup
included on the page. Now, when you open the Head Markup window, you can access this default
markup.

In Aura sites, this
markup isn’t exposed in the Head Markup window, but with LWR sites, you can edit:
- The meta charset tag, which specifies the character set to use. This specification is a best practice.
- The title tag, which controls the default title of your site that appears in the browser tab.
- Links to the two default style sheets that control the site’s appearance. One link is for Salesforce Lightning Design System (SLDS) and the other is an internal style sheet used by the base template. Although you can’t edit the style sheets directly, you can remove them.
You can use the { basePath } and { versionKey } variable references in your head markup as you want. For example, if your site URL is https://site.acme.com/service/s, then { basePath } returns service/s, which allows you to reference relative URLs.
{ versionKey } is a unique id that’s used to refer to a current published state, which you can use for caching and performance purposes. Every time the site is republished, the versionKey changes.
See Add Markup to the Page <head> in Salesforce Help.