How to Migrate from WordPress to HubSpot CMS, Step by Step
· 8 min read · by Mia

A WordPress to HubSpot CMS migration moves your content, URLs and forms into HubSpot and rebuilds your theme as a HubSpot theme. HubSpot can import your blog posts directly. Pages, page-builder layouts and forms have to be rebuilt. This guide walks you through the seven steps, using HubSpot's own import tools wherever they exist.
The seven steps at a glance:
- Take inventory of your WordPress site
- Export your content
- Import blog posts and page structure into HubSpot
- Rebuild your theme
- Recreate forms and connect them to the CRM
- Set up redirects and check SEO
- Launch and monitor
What moves, and what has to be rebuilt
WordPress and HubSpot store content differently. WordPress themes are PHP; HubSpot themes use HubL templates and modules. That is why there is no button that moves a whole site. Here is what transfers and what doesn't:
| WordPress | In HubSpot | How |
|---|---|---|
| Blog posts | Blog posts | HubSpot's blog import: title, body with inline images, URL, publish date, author, tags, meta description and featured image |
| Pages | Website pages | HubSpot's page import brings over URL, title, meta description and your navigation. The page content does not come over. |
| Theme and page-builder layouts (Elementor, Divi, WPBakery …) | HubSpot theme with modules | Rebuild. A WordPress theme cannot be converted 1:1. |
| Forms (Contact Form 7, Gravity Forms, WPForms …) | HubSpot forms | Recreate. Submissions then land directly in your CRM. |
| Plugins | Built-in features or integrations | SSL, CDN, caching and security are part of HubSpot's hosting; SEO tools are built into the editor. |
| URLs | Same or redirected URLs | Keep the slugs where you can; 301 redirects for everything that changes. |
Step 1: Take inventory of your WordPress site
Every migration problem that shows up after launch starts with a page, form or URL nobody listed. Before you touch HubSpot, build one spreadsheet of your site:
- All URLs. Start from your XML sitemap and add a crawl, so you also catch pages that aren't in the sitemap.
- Traffic and rankings per URL. Pull them from Google Search Console and Google Analytics. Pages with traffic or backlinks must keep their URL or get a redirect.
- A decision per page: keep, merge or drop. A migration is a good moment to clean up, but don't drop pages that still bring visitors.
- Page types. Group the pages by layout: home, service page, landing page, blog post, legal page. Each group becomes one template in HubSpot.
- Forms and integrations. List every form, where its submissions go and which tools connect to the site (newsletter, booking, chat, analytics).
- Plugins. Note what each plugin does. Most functions exist in HubSpot already; the rest need an integration or custom code.
- Languages. If you run WPML or Polylang, list which pages exist in which language.
Step 2: Export your content
Back up the full site first, then export what HubSpot can import:
- Blog posts: in WordPress, go to Tools > Export and download the XML file for your posts. You only need it if HubSpot can't read your blog directly (see step 3).
- Media: images inside posts come over with the blog import. Download other files you still need, such as PDFs, so you can upload them to HubSpot's file manager.
- Form entries: export past submissions from your form plugin as CSV, so you can import them as contacts.
- Existing redirects: if an SEO or redirect plugin already holds redirects, export them. They go into the new redirect list in step 6.
Step 3: Import blog posts and page structure into HubSpot
Both imports start in HubSpot under Settings > Content > Blog, where you switch the view to Import blog and start a new import.
Blog posts
HubSpot offers two ways for WordPress blogs:
- WordPress connect reads your blog through the standard WordPress REST API; you only enter the URL of your blog. It brings over title, SEO title, meta description, author, publish date, featured image, categories, tags and the post body. It doesn't support custom post types, and security plugins that block the REST API can stop it.
- XML file upload uses the export from step 2. Shortcodes are removed by default, and images in gallery tags and linked PDF files are not imported.
Import the posts as drafts first. Then check a sample: images, embedded videos, internal links (they should use absolute URLs) and the author profiles.
Pages
The Website pages import scans your homepage and creates your page structure in HubSpot: URL slug, title, meta description and the navigation menu, up to 400 pages per import. The page content is not imported, so the pages arrive blank. That makes this import a skeleton for step 4, not a finished migration.
Step 4: Rebuild your theme
This is the biggest part of the work. Your WordPress theme and every page-builder layout have to become a HubSpot theme: templates for each page type, and modules with fields your marketing team edits in the page editor. You have three options:
- A marketplace theme. Fast and affordable, but your design adapts to the theme, not the other way round.
- A custom theme built by a developer. Your design stays as it is, but every template and module is coded in HubL by hand.
- Generate the theme with transjt. If your new design exists in Figma, or was built with an AI builder such as Lovable, Claude Code or v0, transjt turns it into a native HubSpot theme with editable modules within a few hours. See how the Figma conversion works or the AI builder route.
With the theme in place, fill the blank pages from step 3: assign a template, add the modules and move the content over. Keep the headings, texts and images from your inventory so nothing gets lost on the way.
Step 5: Recreate forms and connect them to the CRM
- Rebuild each form as a HubSpot form and map every field to a contact property.
- Set notifications and follow-up emails, so nobody misses a lead on launch day.
- Import past form entries as contacts, if you want the history in your CRM.
- Recreate thank-you pages and conversion tracking.
- Connect the tools from your inventory: newsletter, booking, chat. Many have a HubSpot integration.
HubSpot's own tracking runs on HubSpot pages automatically. Add Google Analytics, a tag manager or other scripts in the site header HTML, and configure the cookie banner in HubSpot's settings.
Step 6: Set up redirects and check SEO
Redirects decide whether you keep your rankings. Match every old URL from step 1 to its new URL:
- Keep slugs where you can. Pages imported in step 3 keep their URL slugs. Blog post URLs depend on your blog's root URL in HubSpot, so check them.
- Add a 301 redirect for every URL that changes or disappears, and point dropped pages to the closest matching page, not to the homepage.
- Upload redirects in bulk under Settings > Content > Domains & URLs > URL Redirects with HubSpot's CSV template. One file holds up to 500 redirects, and a single error stops the whole file, so check it before you upload. Bulk upload is available in Marketing Hub Professional and Enterprise and in Content Hub Starter and above.
- Carry over the SEO data: page titles, meta descriptions, image alt texts, canonical tags and structured data. HubSpot creates the XML sitemap for you.
Step 7: Launch and monitor
Use this checklist before and after you switch the domain:
- Every page from the inventory exists in HubSpot, or has a redirect.
- All forms send test submissions to the right place.
- Mobile layouts, navigation and footer links work on every template.
- Connect your domain to HubSpot by updating the DNS records; HubSpot sets up the SSL certificate.
- Crawl the live site and the list of old URLs: no 404 errors, no redirect chains.
- Submit the new sitemap in Google Search Console.
- Watch Search Console for crawl errors and ranking changes over the following weeks, and fix missing redirects right away.
- Keep your WordPress installation and backup until everything checks out.
How long does a migration take?
It depends on four things: the number of pages and page types, the number of languages, the number of forms and integrations, and whether you change the design at the same time. The imports in step 3 take hours; the theme rebuild and moving page content take most of the time.
Would you rather have it done for you?
transjt rebuilds your WordPress theme and page-builder layouts as a native HubSpot theme and moves your content with all pages, posts and languages. Scan your site, confirm what stays, and get your price: WordPress to HubSpot migration service.
FAQ
Can I move my WordPress theme to HubSpot?
No. WordPress themes are PHP and HubSpot themes use HubL templates and modules, so the theme has to be rebuilt. Your content, URLs and SEO data can come over.
Will I lose my Google rankings?
Not if every old URL either stays the same or redirects with a 301 to its new page, and titles, meta descriptions and content come over unchanged. Small ranking movements in the first weeks are normal.
Can HubSpot import my WordPress pages?
Only their structure: URL, title, meta description and navigation. The page content has to be rebuilt in HubSpot templates and modules. Blog posts, by contrast, import with their content.
Do I need a developer?
For the imports and redirects, no. For the theme, you need a developer, a marketplace theme or a tool that generates the theme for you.
Can I keep WordPress and only use HubSpot's CRM?
Yes. HubSpot's WordPress plugin brings forms, tracking and chat to your WordPress site. A full move to HubSpot CMS makes sense when you want your website, CRM and marketing in one system.
More on the whole process: what a WordPress to HubSpot migration involves and migrating to HubSpot CMS from other systems.