How to Migrate Recipe Schema When Changing WordPress Themes (Without Losing Rankings)
Danger zone: Changing themes without properly migrating recipe schema can cause you to lose rich results overnight—and tank your traffic by 40%+. Here's how to do it safely.
Why Theme Changes Break Recipe Schema
Many WordPress themes bundle recipe card plugins or inject schema markup directly. When you switch themes, this schema disappears—and Google stops showing your rich results.
Common Theme Change Disasters:
Old theme provided schema, new one doesn't—your recipes lose rich results immediately.
Both old plugin and new theme inject schema—Google gets confused and drops rankings.
Recipe data stored in old plugin's custom fields doesn't transfer to new format.
Theme change alters URL structure—all your rankings lost, backlinks broken.
Pre-Migration Checklist (Do This BEFORE Changing Themes)
Critical: Complete every step in this checklist before switching themes. Skipping steps = potential SEO disaster.
Audit Your Current Schema Setup
Understand where your recipe schema is coming from before you break it.
- • Go to any recipe post
- • Right-click → View Page Source
- • Search (Ctrl/Cmd+F) for "application/ld+json"
- • Note if schema exists and what generates it (plugin comment in code)
Document Your Recipe Plugin/System
List every plugin and custom code that handles recipes.
- • WP Recipe Maker
- • Tasty Recipes
- • WP Ultimate Recipe
- • Yoast SEO (sometimes adds schema)
- • Theme-bundled recipe shortcodes
- • Custom schema in functions.php
Full Site Backup (Non-Negotiable)
Create complete backup before any changes. You WILL need this if something breaks.
- • Database export (phpMyAdmin or backup plugin)
- • All files via FTP/SFTP (themes, plugins, uploads)
- • Store backup off-server (Dropbox, Google Drive)
- • Test restore on staging site (optional but recommended)
Export All Recipe Data
Most recipe plugins have export tools. Use them.
- • Plugin's built-in export (usually CSV or JSON)
- • WordPress Tools → Export → Posts (includes recipe custom fields)
- • Screenshot critical recipes as PDF backup
Test Schema on 5-10 Key Recipes
Before migration, verify your most important recipes have valid schema.
Note any warnings or errors for comparison post-migration.
The Safe Migration Process (Step-by-Step)
Option 1: Staging Site Migration (Recommended)
Test everything on a staging site before touching your live site. This is the safest method.
Staging Site Workflow:
- Create staging site (many hosts offer 1-click staging: WP Engine, Kinsta, SiteGround)
- Install and activate new theme on staging
- Test 10-20 recipes—do they display correctly?
- Check schema on staging URLs with Rich Results Test
- Fix any issues (missing schema, broken layouts, etc.)
- Once perfect, activate new theme on live site
- Immediately retest live URLs for schema validity
- Request re-indexing in Google Search Console for all recipe URLs
Option 2: Live Site Migration (Higher Risk)
Only use this if you don't have staging. Must be done during low-traffic hours.
Live Migration Workflow:
- Choose low-traffic time: 2-4 AM your timezone (check Google Analytics)
- Enable maintenance mode: Use plugin like "WP Maintenance Mode" to hide site from visitors
- Activate new theme: Appearance → Themes → Activate
- Immediately test: Visit 5-10 recipe posts, verify layout and schema
- Run Rich Results Test: Test key recipes for valid schema
- Fix critical issues: You have 30-60 minutes before traffic returns
- Disable maintenance mode: Site goes live with new theme
- Monitor for 48 hours: Watch Search Console for schema errors
Common Migration Scenarios & Solutions
Scenario 1: Plugin-to-Plugin Migration
Situation: You're switching from one recipe plugin to another (e.g., Tasty Recipes → WP Recipe Maker).
Migration Steps:
- Check if new plugin has import tool for old plugin's format (many do!)
- If yes: Export from old plugin → Import to new plugin → Deactivate old plugin
- If no: Manually recreate recipes in new plugin (painful but sometimes necessary)
- Test schema on 10-20 recipes after migration
- Keep old plugin installed but deactivated for 30 days (safety net)
Scenario 2: Theme-Provided Schema → Plugin Schema
Situation: Your old theme injected schema automatically, new theme doesn't.
Solution:
- Install a dedicated recipe plugin (WP Recipe Maker, Tasty Recipes, etc.)
- If recipes are in regular post content: Manually convert them to plugin format
- If old theme used custom fields: Export data, import into new plugin
- This is time-consuming but necessary—schema won't magically transfer
Scenario 3: Plugin Schema → Manual Schema
Situation: You want to move from a plugin to manually-coded schema (advanced users).
Why You'd Do This:
- • Maximum control over schema output
- • Eliminate plugin bloat/conflicts
- • Custom schema integration with headless WordPress
Steps:
- Create custom post type for recipes (if not already)
- Add custom fields for all schema properties (ingredients, instructions, etc.)
- Write PHP function to output JSON-LD schema from custom fields
- Hook function into
wp_headaction - Test extensively before removing old plugin
Post-Migration Validation & Monitoring
Complete This Within 24 Hours of Theme Change:
Use Google Rich Results Test. Prioritize your highest-traffic recipes.
Navigate to Enhancements → Recipes. Look for error spikes.
In Search Console, submit top 10-20 recipe URLs for re-indexing.
Watch Google Analytics. Organic traffic drop = schema issue.
Test recipes on mobile devices. Schema + mobile-friendly = critical.
View page source—ensure only ONE schema block per recipe, not multiple.
Emergency Rollback Plan
If Schema Breaks After Theme Change:
Theme-Specific Migration Notes
Genesis Framework → Any Theme
Genesis uses custom post types for recipes. Most plugins can import this data.
Tip: Export Genesis recipes as XML, import into new plugin via WordPress Tools → Import.
Foodie Pro → GeneratePress/Astra
Foodie Pro bundles Tasty Recipes. Switching themes doesn't affect Tasty Recipes.
Tip: Keep Tasty Recipes plugin active—it's theme-independent.
Divi → Kadence/Blocksy
Divi recipes often use shortcodes. New themes won't render these.
Tip: Manually convert Divi shortcode recipes to WP Recipe Maker format before switching.
Custom Theme → Any Popular Theme
Custom themes often have proprietary schema implementations.
Tip: Hire developer to extract recipe data from database and format for new plugin.
Preventing Future Migration Pain
Best Practices for Theme-Independent Recipes:
- ✓Use standalone recipe plugins that work with any theme (WP Recipe Maker, Tasty Recipes)
- ✓Avoid theme-bundled recipe features—you're locked into that theme forever
- ✓Document your recipe system—know what generates schema before problems arise
- ✓Test theme changes on staging before touching live site
- ✓Keep regular backups—weekly minimum for food blogs
Timeline: How Long Does Recovery Take?
If schema breaks during migration, here's how long it takes to recover rankings:
Validate Your Recipe Schema
Generate fresh, error-free schema for all your recipes after migration.
Generate Schema Now →