Skip to content

Migrating from Theme Settings UI to PageBuilder Deployer

This guide walks you through changing settings locally and deploying your changes using the PageBuilder Deployer UI.

Prerequisites

Download your live bundle

To download your live bundle, take the following steps:

  1. On the top-right of the Arc XP dashboard, select the environment you want to deploy to from the drop-down menu
  2. Click the PageBuilder Editor tile in the Arc XP dashboard
  3. On the top navigation menu, click the Developer Tools tab to expose the submenu
  4. On the submenu, click the Deployer tab
    • The Deployer section opens and lists running and uploaded bundles. The live bundle appears first on the list in the running bundles section.
  5. On the top right of your live bundle, click the *** button.
  6. Click the Download option
    • Your browser downloads a timestamped zip file.

Modify Arc Blocks settings

Using an IDE or a code editor, open the blocks.json file located in the root directory of your project. This contains key-value pairs that the Theme Settings UI updated during the last deployment, using values from the input fields. You can directly modify the blocks.json file to change your Arc Blocks settings.

The following table describes the keys and values that must be in the blocks.json file to ensure successful deployments with PageBuilder Deployer.

KEYDESCRIPTIONREFERENCE VALUE
themesReleaseVersion
(string)
The Themes version to use in your deploymentarc-themes-release-version-2.4.1
themeComponents
(string)
Specifies and enables the use of arc-themes React components to build custom blocks@wpmedia/arc-themes-components
theme
(string)
Specifies the default style for the website. Arc XP currently only supports the News theme.news
blocks
(array)
Lists the blocks available in your bundleSee the blocks.json example file for a complete list
siteProperties
(object)
key-value pairs to configure site propertiesSee the blocks.json example for example values

Zip your bundle

Before zipping your bundle, start the Docker daemon by opening the Docker Desktop application. See Setting Up Your Dev Playground for Docker resources requirements.

From the root directory of your project, run the following command:

Terminal window
npx fusion zip

This command will build your code and create a timestamped .zip file in the /dist/ directory.

Deploy your bundle with PageBuilder Deployer

To upload your bundle and deploy your changes using PageBuilder Deployer, take the following steps:

  1. On the top-right of the Arc XP dashboard, select the environment you want to deploy to from the drop-down menu
  2. Click the PageBuilder Editor tile in the Arc XP dashboard
    • The PageBuilder Pages section displays
  3. On the top navigation menu, click the Developer Tools tab to expose the submenu
  4. On the submenu, click the Deployer tab
    • The Deployer section opens and lists running and uploaded bundles.
  5. In the uploaded bundles section, click the Upload Bundle button
    • The Upload Bundle panel appears
  6. Provide a name for your bundle in the Bundle Name text field
  7. Click the Upload Bundle button
    • A system file explorer window opens
  8. Navigate to your project’s /dist/ directory
  9. Select the bundle zip file you created in the previous step
  10. On the bottom of the Upload Bundle panel, click the Upload Bundle button
    • Your bundle shows in the uploaded bundles list with the Unused badge.
  11. On the top right of your uploaded bundle, click the *** button
  12. Click the deploy option.