Global Variables
Global Variables let you define a value once — your support phone, address, brand name, a logo URL — and reuse it across your whole site. Update it in one place and it changes everywhere it’s used.
They live in Settings → Global Variables.
Adding a variable
Section titled “Adding a variable”- Click Add Variable to add a blank row (or Add Variable inside a folder to add it there).
- Enter a Key and a Value.
- Click Save Variables below the list.
| Column | Rules |
|---|---|
| Key | Required. Spaces turn into underscores and letters into lowercase as you type. Must be unique across the whole project, folders included — a duplicate key is outlined in red and blocks saving. |
| Value | Any text. |
Using a variable
Section titled “Using a variable”Type [[key]] in any text on your site — a heading, a paragraph, a button — and the published
page shows the value instead. For example, Call us at [[support_phone]].
You can also ask the AI builder to use one — for example, “put the global variable
support_email in the footer”. In custom code, globalVariable('key') returns the value.
Organizing with folders
Section titled “Organizing with folders”Click Add Folder to group related variables, such as everything for one location or one campaign. Folders are for organizing only: a key still has to be unique across the project.
- Drag the grip on a row to reorder variables or move one between folders, and the grip on a folder header to reorder folders.
- Click the arrow on a folder to collapse or expand it.
Sharing a folder with another project
Section titled “Sharing a folder with another project”- Click Share folder by code on a folder. Genesis gives you a share code.
- In the other project, open Global Variables → Import, paste the code and click Load.
- Check the folders and variables it lists, then click Import, and save.
Keys that already exist in that project are kept as they are — duplicates are skipped.
Things worth knowing
Section titled “Things worth knowing”- Deleting a folder deletes the variables in it. Genesis asks first when the folder isn’t empty, and it can’t be undone once you save.
- Changing a value updates every place that uses its key. Renaming a key doesn’t update the text
that uses the old one — change those
[[key]]tokens too.