Move content from a page builder

Move pages built with WPBakery, Impreza or ACF to blocks of Leitvia: an agent reads each page, shows what carries over and what does not, and puts the result into a change package you check before it goes live.

For agencies and developers · Pro Agency or Pro Agency Unlimited · Checked with Leitvia 1.2.69, Leitvia Studio 1.3.65 and Leitvia Pro 0.8.55

How it works

You ask your AI agent, for example: Move the page Our services from WPBakery to blocks and show me what does not carry over. The agent then works through these steps:

  1. Read. The agent calls leitvia-pro/read-builder-content for the page. It returns the block version, the fields for the content model, a report and the document hash. Nothing is written yet.
  2. Report. The report names what does not carry over (unmapped), what is left out as presentation, moved heading levels, images without alternative text and colors with the nearest token of the theme.
  3. Your decision. When something is unmapped, the agent shows it to you. Only when you agree to lose it does it send accept_unmapped. Without that, the write is refused with leitvia_pro_unmapped.
  4. Write. The agent calls leitvia-pro/migrate-builder-content with the document hash and a package key, such as migrate-services-page. Every page of the same task uses the same key, so they land in one change package. A migration never goes live directly.
  5. Check and apply. Open Leitvia Studio › Inbox, open the package and compare before and after. Choose Apply selected, or Reject to leave the page as it was.
The front end of the page Our services from the old site, built with WPBakery: without the page builder the shortcodes vc_row, vc_column and vc_custom_heading show as plain text.
Before: a page of the old site without its page builder.
The change package migrate-services-page in the Inbox of Leitvia Studio, with the step on the page Our services (old site) and its difference: the shortcodes replaced by a heading, paragraphs, columns and a button as blocks.
After the agent: the migration waits in the Inbox with its difference.

The skill leitvia-pro-migrate ships with Leitvia Pro and teaches the agent these steps. It works page by page, asks before it maps fields of ACF to the content model, and lists images without alternative text so a person can describe them.

Clean up older content

After a move, older posts still carry traces of the old site: images from the old host, colors of the old theme, broken characters such as ???. Leitvia Studio cleans them up the same way, through a change package.

  1. Ask your agent, for example: Check all posts for images from the old host and broken characters. Fix what you can in one change package with the key cleanup-old-posts and list what needs me.
  2. The agent runs leitvia/audit-site. It reports images, videos, audio and iframes of other hosts per block as leitvia/foreign-media, and broken characters as leitvia/lost-characters.
  3. It fixes the findings into the package (see the table below). A word it cannot read for sure, it asks you about.
  4. Open Leitvia Studio › Inbox, check the steps and apply them.
  5. The agent runs the audit again until no finding is left.
AbilityWhat it does
leitvia/add-mediaFetches an image of another host once into the media library.
leitvia/localize-mediaPoints every place of a post that loads that file to the copy in the library, classic content included.
leitvia/set-alt-textDescribes every image with one address in a post, also images without an attachment ID.
leitvia/fix-presetsRemoves colors and sizes of the old theme.
leitvia/fix-button-colors, leitvia/fix-cover-colorsGive buttons and covers the roles of the token set again.
leitvia/update-blockInserts, moves and replaces blocks in older content, changes one link of a text by its words and keeps a term on one line.
leitvia/update-contentWrites a broken word again and moves classic content to blocks.

The skill leitvia-migrate of Leitvia Skills describes the whole move of a site, these steps included.

Undo

Reject the package to leave the page as it is. After applying, open the package in the Inbox and choose Roll back.

Limits

  • Only content travels. Layout settings of the builder (spacing, animations, colors outside the tokens) are dropped and listed.
  • A page without WPBakery or Impreza shortcodes, ACF blocks or ACF fields is refused. Classic content moves with leitvia/update-content.
  • Both abilities need an active license of Pro Agency or Pro Agency Unlimited. Content they wrote stays without one.