Rebuilding an Elementor site in Astro (what I keep and what I throw away) A developer described a repeatable workflow for migrating Elementor-built WordPress sites to Astro by rebuilding rather than converting them: capturing full-page Playwright screenshots as the visual spec, extracting page content from Elementor's `_elementor_data` post meta via WP-CLI, and collapsing roughly 40 pages into about 8 reusable Astro section components fed by plain JSON. The process also rebuilds the Theme Builder header and footer as single components with a JSON-driven menu, then uses the coding agent to diff new screenshots against the originals and verify redirects for every old URL before deploying with `npx novence deploy`. Half the WordPress sites I get asked to move are built in Elementor. The client wants "the same site, just faster". The problem is there is no clean export. Open the page HTML and every heading sits inside four nested divs with classes like elementor-element-3f9a1c2 . You can't convert that into anything you'd want to maintain. So I don't convert it. I rebuild it. But I rebuild it in a very specific order so it doesn't turn into a three week redesign nobody asked for. First job is a full page screenshot of every page at desktop and mobile width. My coding agent does this with Playwright from the sitemap: npx playwright screenshot --full-page --viewport-size=1440,900 https://client.com/about shots/about-desktop.png npx playwright screenshot --full-page --viewport-size=390,844 https://client.com/about shots/about-mobile.png These screenshots are the spec. When the client says "the old one had a blue bit there" I can check in 10 seconds instead of arguing. Elementor stores page content as JSON in post meta elementor data , not in post content . So the normal WordPress export gives you mostly empty pages. I grab it straight from the database or with WP-CLI: wp post meta get 42 elementor data --format=json raw/about.json Then I ask the agent to walk the JSON and pull out only the things that matter: headings, paragraphs, buttons text + link , images url + alt and the order they appear in. Everything else padding, motion effects, custom CSS on a single widget gets thrown away. The output is one plain markdown or JSON file per page. Here's the bit that saves the most time. Elementor sites look like 40 unique pages but they're usually about 8 section types repeated: hero, three column features, logo strip, testimonial, CTA band, FAQ, team grid, contact block. I give the agent the screenshots and the extracted content and ask it for a list of section types with which pages use them. Then I build each one once as an Astro component: --- // src/components/CtaBand.astro const { heading, text, button } = Astro.props; ---