Skip to content

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.

  1. Click Add Variable to add a blank row (or Add Variable inside a folder to add it there).
  2. Enter a Key and a Value.
  3. Click Save Variables below the list.
ColumnRules
KeyRequired. 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.
ValueAny text.

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.

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.
  1. Click Share folder by code on a folder. Genesis gives you a share code.
  2. In the other project, open Global Variables → Import, paste the code and click Load.
  3. 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.

  • 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.