Platform and migration

Moving Off WPBakery: How to Convert Shortcode Pages to Gutenberg Blocks

8 min read

On this page

Your site was built with WPBakery, the page builder many teams still know as Visual Composer. Every page is a stack of [vc_row] and [vc_column] shortcodes. Editors avoid touching layouts, and each plugin or theme update feels like a risk.

You want native Gutenberg blocks. Before anyone quotes the job, you need to know how big it is. This guide shows how to size it, convert it in batches while the site stays live, and test every page.

Because the site stays on WordPress, your content, URLs and media stay where they are. What changes is the layer that builds each page.

Key takeaway: you can convert WPBakery pages to Gutenberg blocks, but not with one button. Conversion tools handle the basic elements. The real work is the inventory: which elements, add-ons and custom styles your site uses, and what each one becomes.

Why WPBakery is harder to leave than it looks

WPBakery stores the layout inside the page content itself. A simple section looks like this in the database:

  • [vc_row][vc_column width="1/2"][vc_column_text]Our platform...[/vc_column_text][/vc_column][vc_column width="1/2"][vc_single_image image="1234"][/vc_column][/vc_row]

Elementor, by comparison, keeps its layout data separate from the post content. With WPBakery, layout and content are the same string, so you cannot simply switch editors.

If you deactivate the plugin, those shortcodes stop rendering and appear as text on the page. The WordPress code reference for do_shortcode describes exactly this: “This might cause issues when plugins are disabled but the shortcode will still show up in the post or content.”

Three more things make the job bigger than the page count suggests. Design options set per element (spacing, backgrounds, borders) are saved as generated CSS tied to each page. Many commercial themes bundle WPBakery and register their own elements. And add-on packs bring dozens of extra shortcodes, each of which needs a decision.


Step 1: Inventory your shortcode usage

Size the job from data, not from a page count. On a copy of the site, these read-only WP-CLI commands show how many published items use WPBakery and which shortcodes appear most often. They assume the default wp_ table prefix; adjust it if yours differs.

  • How many published items use WPBakery, by post type: wp db query "SELECT post_type, COUNT(*) FROM wp_posts WHERE post_status='publish' AND post_content LIKE '%[vc_row%' GROUP BY post_type;"
  • Every shortcode tag in published content, most used first (WPBakery, theme and add-on tags): wp db query "SELECT post_content FROM wp_posts WHERE post_status='publish' AND post_content LIKE '%[vc_%';" --skip-column-names | grep -oE '\[[a-zA-Z0-9_-]+' | sort | uniq -c | sort -rn

Then fill in the rest of the inventory. Use it as the checklist for the whole project.

What to inventoryHow to find itWhy it matters
Pages and posts built with WPBakeryFirst query aboveSets the scale and the batches
Shortcode tags and how often each appearsSecond query aboveThe top tags cover most of the site; rare tags may be retired
Theme elements and add-on packsTags without the vc_ prefix in the second query; active plugins listEach one needs its own mapping or a replacement
Saved WPBakery templatesWPBakery templates panelRepeated layouts become block patterns
Per-element design optionsPages with custom spacing, colors or backgroundsDecide which become block options and which disappear
Forms, sliders and embeds inside layoutsShortcode list and a visual reviewThese usually depend on other plugins and need their own plan
LanguagesMultilingual plugin settingsEvery translation is converted and tested too
URL and performance baselineFull crawl and Core Web Vitals before you startLets you prove nothing broke

Step 2: Decide what each element becomes

Every element in the inventory gets one of three outcomes:

  • A core block, when WordPress already has the equivalent: headings, paragraphs, images, buttons, separators, spacers.
  • A block in your library, when a repeated section carries your design: hero, feature grid, testimonial, pricing table. One block with a few defined options replaces many hand-styled copies.
  • Retired, when the element appears on a handful of old pages, or only exists because the builder made it easy.

For the common WPBakery elements, the starting map looks like this. The core block column follows the mapping published by the Shortcode to Blocks plugin; the decision column is where your team adds judgment.

WPBakery shortcodeCore block equivalentUsual decision
vc_row, vc_row_innerGroupCore block, or the wrapper of a library block
vc_column, vc_column_innerColumnCore block, or part of a library block layout
vc_column_textParagraph or Custom HTMLCore block; clean the HTML
vc_custom_headingHeadingCore block; check the heading level
vc_btnButtonCore block, styled by the theme
vc_single_imageImageCore block; check alt text
vc_raw_htmlCustom HTMLReview one by one; often retired
vc_separator, vc_empty_spaceSeparator, SpacerCore block, or removed in favor of block spacing
Theme and add-on elementsNoneLibrary block or retired

The library decision is where marketing gains the most. With a governed block system, every layout choice an editor can make is one the team shipped on purpose, so pages stay on brand without a developer reviewing each one. Our block system for enterprise WordPress shows how that works.

Leaving WPBakery, Divi or Elementor? Keep your WordPress and replace the builder. 40Q converts builder pages to governed Gutenberg blocks while the site stays live.


Step 3: Convert in batches while old pages keep rendering

Keep WPBakery active until the last page is converted. Unconverted pages keep rendering, and the site never shows raw shortcodes. The WordPress Developer Blog guide to converting shortcodes to blocks (2023-03-04) makes the same point for any shortcode: “For backward compatibility purposes, your shortcodes should still always exist and work.”

Convert by pattern, not by page order. Start with one template as a pilot, check it end to end, then convert every page that shares that template. High-traffic pages go in an early batch so they get the most review time.

Tools help with the basic elements. The free Shortcode to Blocks plugin (WordPress.org, updated 2026-08-20) maps vc_* shortcodes to core blocks, wraps other shortcodes in Shortcode blocks so they keep working, and stores the original content so you can revert. Its free version converts one post at a time, batch tools are in a paid add-on, and it has a small install base (40+ sites), so test it on a staging copy first. Tools like this produce core blocks with the old layout. They do not design your block library.

Where AI helps, and where people decide. In 40Q builder migrations, agents extract text, images and links from builder sections into a review sheet, and match each repeated section to one block in the library. Your team approves every change; nothing moves unreviewed. AI-assisted visual testing, which compares each converted page with the builder version, is in development.

Step 4: Test every page before you remove WPBakery

  1. Visual check. Compare each converted page with the WPBakery version on desktop and mobile.
  2. Headings. One H1 per page, and heading levels in order. Builder headings are often styled text with the wrong level.
  3. Links. Internal links and buttons point where they did before.
  4. Images. Every image keeps its alt text.
  5. URLs and metadata. Slugs, titles and meta descriptions are unchanged. Converting in place keeps URLs, but check anything that was rebuilt as a new page against a URL map.
  6. Forms and embeds. Submit every form and check where the data lands.
  7. Performance. Compare Core Web Vitals with your baseline.
  8. Zero shortcodes left. Run the first inventory query again. When it returns no rows, deactivate WPBakery on staging, recrawl, and only then remove it in production.

Do it yourself or bring a team?

You can run this yourself when the site is small, uses only standard WPBakery elements, has no add-on packs or theme elements, runs in one language, and you have an engineer who can own the queries, the conversion and the testing.

Bring a team when the inventory shows theme or add-on elements across many pages, when the site is multilingual, when forms and integrations sit inside layouts, or when the goal is a block library marketing can publish with, not a one-time conversion. In that case the conversion is the smaller part of the project. If you are still comparing approaches, read how Elementor compares with a governed block system; the same trade-offs apply to WPBakery.

How 40Q runs a builder-to-blocks migration

Our builder migrations cover any page builder: templates become block patterns, shortcodes become blocks, and the site stays on WordPress. We work in three steps. Diagnose: inventory templates, widgets, shortcodes and plugins, record a URL and Core Web Vitals baseline, and convert one template as a pilot. Build or migrate: design the block system and convert the site page by page while it stays live. Operate: cut over with the previous version available, train the team, and keep improving the platform.

ThreatModeler, an enterprise threat modeling company, moved its site from Elementor to a block library built for the WordPress editor. Their marketing team now creates and launches pages much faster, with its own block library and no developer queue. Read the ThreatModeler case.


Frequently asked questions

Book a platform review

Ready to size your move off WPBakery? See how our builder-to-blocks migration works, browse all WordPress migration paths, or book a platform review: a free 30-minute session with a WordPress engineer. You leave with the size of the job and what to convert first, whether you work with us or not.

Share

Take the next step

Give your team the autonomy they've been waiting for

Most enterprise teams stay stuck because their CMS slows them down. You can change that today with a clear, low-friction first step.