WPBakery to Gutenberg: what converts, what you rebuild, and how to keep your rankings

No tool converts a WPBakery (Visual Composer) site to Gutenberg in one click, but more of it converts by script than with Elementor or Divi. What WPBakery leaves in the database, what to convert, what to rebuild as blocks, and the checks that keep rankings and tracking intact.

  • Nov 24, 2026
  • 9 min read
An open notebook with a hand-drawn layout sketch and a pen on a desk, a laptop showing a diagram and a monitor with code behind it

You can’t convert a WPBakery site to Gutenberg with one click, but you don’t have to rebuild all of it by hand either. WPBakery (the plugin that was called Visual Composer until 2017) stores a page as shortcodes with ordinary HTML inside them, so text, headings, images and simple columns convert to core blocks by script. Sliders, grids, tabs, theme-specific elements and anything styled through “Design options” get rebuilt as blocks. The work that protects rankings is neither of those: it is keeping every URL, title, heading and link identical, and proving it with a comparison before launch.

Key takeaways
  • Count the shortcodes before you plan anything. The inventory tells you how much converts by script and how much is a rebuild.
  • Sort every element into three groups: convert, rebuild as a block, or drop. Most sites use a few elements a lot and many elements once.
  • WPBakery hides things outside the visible content: CSS in post meta, encoded HTML and scripts, links in an encoded format. A search-and-replace misses all three.
  • Change one thing at a time. Same URLs, same titles, same copy. A redesign is a second project.

What WPBakery leaves in your database

Open any WPBakery page in the Text tab of the classic editor and you see what the site is really made of:

[vc_row full_width="stretch_row" css=".vc_custom_1612345678901{padding-top: 80px !important;}"]
  [vc_column width="1/2"]
    [vc_column_text]<h2>Pricing that scales</h2><p>Plain HTML lives here.</p>[/vc_column_text]
    [vc_btn title="See plans" link="url:https%3A%2F%2Fexample.com%2Fpricing|title:Pricing"]
  [/vc_column]
  [vc_column width="1/2"]
    [vc_single_image image="1423" img_size="large"]
  [/vc_column]
[/vc_row]

Most of what decides how the migration goes is in that snippet, or hidden just behind it.

WhatWhere it livesWhy it matters
Text and headingsPlain HTML inside [vc_column_text]Converts cleanly to paragraph, heading and list blocks
Images and galleriesAttachment IDs, not URLs: image="1423"The script has to look each one up; alt text comes from the media library
Button and banner linksURL-encoded: link="url:https%3A%2F%2F…"A domain search-and-replace and most link checkers that read the database skip them
Design optionsA css attribute, compiled into the _wpb_shortcodes_custom_css post metaSpacing, backgrounds and borders are not in any stylesheet you can copy
Page-level custom CSS_wpb_post_custom_css post metaPer-page overrides nobody remembers writing
Raw HTML and Raw JS elementsBase64-encoded inside [vc_raw_html] and [vc_raw_js]Embeds, forms and tracking snippets you can’t find by searching the database for their text
Theme elementsShortcodes the theme registered with WPBakeryThey disappear with the theme, not with the plugin
DefinitionNamingWPBakery Page Builder formerly Visual Composer

The plugin whose folder is still called js_composer and whose shortcodes start with vc_. “Visual Composer Website Builder” is a separate, newer product that stores pages differently. If your content is full of [vc_row], this article is about your site.

Start with an inventory, not a quote

The number of pages says little about the size of the job. The number of distinct elements does. Two queries on a staging copy give you both.

# How many published pages and posts are built with WPBakery
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 in published content, most used first
wp db query "SELECT post_content FROM wp_posts WHERE post_status = 'publish'" \
  --skip-column-names | grep -oE '\[[a-z][a-z0-9_]+' | sort | uniq -c | sort -rn | head -50

The second list is the plan. On most sites it has the same shape: vc_row, vc_column, vc_column_text and vc_single_image in the thousands, a dozen elements in the tens, and a long tail used once or twice. Anything in the list that doesn’t start with vc_ belongs to the theme or another plugin, and needs its own decision.

Then look at what the content doesn’t show:

# Pages with per-page CSS, and pages with encoded HTML or scripts
wp db query "SELECT post_id FROM wp_postmeta
  WHERE meta_key = '_wpb_post_custom_css' AND meta_value != ''"
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_status = 'publish'
  AND (post_content LIKE '%[vc_raw_html%' OR post_content LIKE '%[vc_raw_js%')"
// What a [vc_raw_html] or [vc_raw_js] element actually contains
echo rawurldecode( base64_decode( $encoded ) );
Watch out

Decode every Raw JS element before you delete anything. This is where conversion pixels, chat widgets and form embeds were pasted years ago, outside Google Tag Manager. If a snippet goes missing in the migration, nothing looks broken. A number in your ads account just stops moving.

Sort every element: convert, rebuild or drop

With the list in hand, each element goes into one of three groups.

GroupTypical elementsWhat happens to them
ConvertText blocks, headings, single images, simple rows and columns, separators, basic buttons, video embedsA script rewrites them as core blocks: paragraph, heading, image, columns, button, embed
RebuildSliders, post grids, tabs and accordions, testimonials, pricing tables, icon boxes, theme elementsOne custom block each, with fields your editors fill in. Content is moved into the fields
DropEmpty spacers, animation wrappers, elements used once on a page nobody visitsRemoved, or the one page is laid out again with existing blocks

This is where WPBakery is kinder than Elementor or Divi. A blog with hundreds of posts that are text and images inside a single row can be converted in days, because the HTML is already there and only the wrapping changes. A marketing site where every page is a different stack of stretched rows and theme elements is a rebuild, template by template, the same as leaving any other builder.

Two shortcuts look like a migration and aren’t one:

  • Wrapping shortcodes in a Shortcode block. The editor says “blocks”, the page still needs WPBakery to render, and you have kept all of its CSS and JavaScript.
  • Converting rows to nested Group and Columns blocks with inline styles. It reproduces the look and the mess. Editors get twelve levels of nesting, and the next redesign starts from the same place.

The useful test for a rebuilt block: an editor can add it to a new page, fill in four fields, and get the section the designer intended, with nothing to align by hand.

Google doesn’t know or care which editor made a page. It notices when the page changes. So the rule for the migration is that nothing a crawler reads may change unless you decided it should.

Compare old and new, page by page
  • The URL, including the trailing slash, and the canonical tag
  • Title and meta description. They live in your SEO plugin’s post meta and survive, but check that templates still print them once
  • Headings: the same text at the same level. WPBakery headings are often styled <div>s or the wrong level; fix that on purpose, in a list, not by accident
  • Body copy, including text that sat inside tabs, accordions and sliders
  • Internal links, counted per page, including the encoded button links
  • Image alt text. WPBakery reads it from the media library, and your blocks should too
  • Structured data, hreflang and the robots meta tag
  • The XML sitemap: same URLs, nothing new such as a block-pattern or template post type

I don’t compare these by eye. Crawl the old site and the staging site with the same tool, export URL, status, title, description, H1, canonical, word count and link counts, and diff the two files. Every difference is either a decision you can name or a bug. It takes an hour and it is the single check that separates a quiet launch from a traffic dip in week two.

Note

Word count is the fastest signal. If a page lost 300 words, a tab, a slider or a row hidden on desktop didn’t make it across. WPBakery lets editors hide an element per device, so content can exist in the database that you never saw on your own screen.

The order I run it in

  1. Copy the site to stagingDatabase and uploads, with indexing blocked. Nothing below happens on the live site.
  2. Run the inventoryShortcode counts, per-page CSS, raw HTML and JS decoded, theme elements listed, forms and tags mapped.
  3. Build the block setOne block per “rebuild” element, most used first. Styles come from the design, not from the compiled WPBakery CSS.
  4. Convert by script, in batchesOne post type at a time, with the original content saved in post meta so any page can be put back in one command.
  5. Rebuild the templates that don’t convertHome, landing pages and anything made of one-off rows. These are done by hand and checked against the original side by side.
  6. Search for leftoversNo published content may still contain [vc_ or a theme shortcode. Then deactivate WPBakery on staging and look at every template.
  7. Diff the crawlOld against new: URLs, titles, headings, word counts, links, canonicals.
  8. Test what the site doesSubmit every form, watch the events arrive in Google Tag Manager’s preview, check that each conversion is counted once.
  9. Launch, then watch for four weeksSearch Console coverage and Core Web Vitals, the 404 log, and form submissions against the same weeks before.
# The check before WPBakery is switched off: this must return nothing
wp db query "SELECT ID, post_type, post_title FROM wp_posts
  WHERE post_status IN ('publish','draft','private') AND post_content LIKE '%[vc\_%'"

Where these migrations go wrong

  • Deactivating the plugin on the live site “to see what happens”. Every page shows raw shortcodes until it is back on. If Google crawls in that window, that is the snapshot it keeps for a while.
  • A bundled copy of WPBakery. Many themes ship their own copy and add their own elements to it. Replacing the theme removes those elements even though WPBakery is still active, so the theme and the builder have to leave together, in one plan.
  • Tracking that targeted the old markup. Click triggers in Google Tag Manager often match WPBakery’s class names, such as .vc_btn3. New markup means those triggers stop firing without any error. List every trigger that uses a CSS selector before launch and point each one at the new blocks.
  • Links that were never checked. The encoded button links still point at an old domain, a staging URL or a page that was renamed. They worked through a redirect for years; clean them while you are moving them.
  • Redesigning at the same time. New layout, new copy and new URLs in one release means that when traffic moves, nobody can say why. Migrate first, measure, then change the design.
  • Calling it done when the pages look right. The last tenth of the work is the grid templates, saved templates, widgets and archive pages that nobody opened during testing.

What you should expect to gain

WPBakery loads its stylesheet and scripts on every page, whether the page uses a slider or a single paragraph, and it sizes full-width rows with JavaScript after the page has loaded, which is a common source of layout shift. Blocks that load their own small CSS only where they are used remove both. How much that is worth depends on the site, so measure the same five templates before and after, on the same machine, and judge the result on 28 days of real visitors in Search Console rather than one lab score.

I have published the numbers from two builder exits measured that way: a 400-page site moved off Elementor and a fintech site rebuilt from Divi. The builders differ; the pattern of where the weight goes is the same. The checklist for keeping rankings through a builder migration applies here line for line.

The other gain is quieter. Editors work with blocks that can only produce the intended layout, the plugin list gets shorter, and the site no longer depends on a builder licence tied to a theme that stopped receiving updates.

Related servicePlanning to convert a WPBakery site to Gutenberg?Page builder migration, fixed price from $2,400: a shortcode inventory, native blocks your editors can use, and a crawl diff of every URL, title and link before launch.See the service

If you want a first look at your own site, the free scan on this site shows the page weight, requests, layout shift and scripts it finds, and which builder and plugins it can detect from outside.

Leaving a page builderOff WPBakery, onto native blocks, with every URL, title and tag keptPage builder migrationBook the deep audit
Share@
Common questions

Questions from this article.

Something else?Write a line about your site. You’ll get a reply from me within one business day.

Not one that finishes the job. WPBakery saves pages as shortcodes, and automatic tools either wrap those shortcodes in a Shortcode block, which still needs WPBakery to render, or convert the simple parts and leave the rest. Text, headings, images and basic columns convert well by script. Sliders, grids, tabs, theme elements and anything with design options have to be rebuilt as blocks.

Every page built with it shows raw shortcodes such as [vc_row] and [vc_column_text] as plain text, on the page and in search snippets once Google recrawls. The content is not deleted and comes back when the plugin is reactivated, but do this test on a staging copy, never on the live site.

The plugin most people mean is. WPBakery Page Builder was called Visual Composer until 2017, and its folder is still named js_composer. Visual Composer Website Builder is a separate, newer product that stores pages differently. Check which one you have before planning: shortcodes starting with vc_ in the page content mean WPBakery.

It should not, if URLs, titles, meta descriptions, headings, internal links and structured data stay the same and you compare them page by page before launch. Rankings drop when a migration quietly changes those, or when it is combined with a redesign and a URL change at once. Lighter pages usually help Core Web Vitals.

It depends on the number of distinct layouts and custom elements, not the number of pages. A blog with hundreds of text-and-image posts can convert by script in days. A marketing site where every page is a different stack of rows, sliders and theme elements is a template-by-template rebuild that takes weeks.

Keep reading

More on SEO & migrations.

All insights