Export Process
Generate and deploy your WordPress theme.
Overview
The Export process compiles your TheDock design into a working WordPress theme:
- CSS files from your design system
- PHP templates from your layouts
- JavaScript functionality
- Theme assets (fonts, icons)
How Export Works
What Happens During Export
- CSS Generation - Design settings become stylesheets
- Template Compilation - Layouts become PHP template files
- Asset Bundling - Fonts, icons, images are packaged
- File Writing - Everything is written to your theme folder
Where Files Go
Export generates files in your WordPress theme directory:
wp-content/themes/thedock/
├── style.css
├── functions.php
├── index.php
├── header.php
├── footer.php
├── template-parts/
├── assets/
│ ├── css/
│ ├── js/
│ └── fonts/
└── ...
Running Export
From TheDock
- Click Export Theme in the top header bar
- Wait for export to complete (progress shown)
- Success message appears when done
Export Options
Depending on your setup, you may have options:
| Option | Description |
|---|---|
| Full Export | Complete theme regeneration |
| CSS Only | Just update styles |
| Preview | View changes without exporting |
After Export
Viewing Your Site
- Click Back to WordPress or visit your site URL
- Your theme changes are now live
- Test all pages and functionality
Clearing Cache
If changes don't appear:
- Clear any caching plugin (WP Super Cache, W3 Total Cache, etc.)
- Hard refresh browser (Ctrl+Shift+R / Cmd+Shift+R)
- Try incognito/private browsing
Export Best Practices
1. Save Before Export
Ensure all changes are saved before exporting.
2. Test in Staging
If possible, export to a staging environment first.
3. Check All Pages
After export, visit key pages:
- Homepage
- A blog post
- An archive page
- Contact/form page
- 404 page
4. Test Responsively
Check mobile and tablet views after export.
5. Verify Forms
Test all forms still work correctly.
6. Check Third-Party Integrations
Verify plugins and integrations function properly.
Export Frequency
When to Export
- After significant design changes
- After building new templates
- Before sharing with clients
- Before going live
Incremental Work
You don't need to export after every small change. TheDock saves your work automatically; export when you're ready to see changes live.
Troubleshooting Export
Export Fails
Possible causes:
- Server timeout (large sites)
- Insufficient permissions
- Disk space issues
- PHP memory limit
Solutions:
- Increase PHP memory limit
- Check folder permissions
- Contact hosting support
Changes Not Visible
Possible causes:
- Browser cache
- Caching plugin
- CDN cache
Solutions:
- Clear all caches
- Hard refresh browser
- Purge CDN if used
Styles Look Different
Possible causes:
- CSS specificity conflicts
- Plugin CSS interference
- Browser rendering differences
Solutions:
- Check browser console for errors
- Inspect with developer tools
- Review custom CSS conflicts
PHP Errors After Export
Possible causes:
- Custom code errors
- Plugin conflicts
- PHP version incompatibility
Solutions:
- Enable WP_DEBUG to see errors
- Review custom PHP code
- Check PHP version requirements
Production Deployment
Going Live Checklist
Before launching your site:
- Export final version
- Test all pages
- Test all forms
- Check mobile/tablet views
- Verify SEO settings
- Test social sharing
- Check performance
- Backup everything
Backup Strategy
Before major updates:
- Export current theme state
- Backup WordPress database
- Save TheDock configuration
Version Management
Saving States
TheDock can save snapshots of your configuration:
- Go to Team panel
- Current state is saved automatically
- Access previous states if needed
Rolling Back
If export causes issues:
- Access previous state in Team panel
- Load that state
- Re-export
Multi-Environment Workflow
Development → Staging → Production
Development:
- Build and experiment freely
- Export often to test
Staging:
- Final testing before production
- Client review
Production:
- Final export only
- Thorough testing post-export
Keeping Environments in Sync
TheDock state is stored in the database. To sync:
- Export configuration from source
- Import to destination environment
- Re-export theme files
Related Topics
- Theme Structure - What gets exported
- Custom CSS - CSS in exports
- Custom Code - Code in exports