Soft Dynamix Page Importer
WordPress plugin for importing and exporting feature pages with Z.ai integration
by Soft Dynamix · github.com/soft-dynamix/rp-page-importer · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/soft-dynamix/rp-page-importer/releases/download/v1.2.0/rp-page-importer.zipRP Page Importer - WordPress Plugin
A WordPress plugin for importing and exporting feature pages from ZIP files. Perfect for working with Z.ai to create and modify custom page designs.
Features
- Import Pages: Upload ZIP files with HTML, CSS, and images
- Export Pages: Export any WordPress page to a ZIP file for Z.ai development
- Drag & Drop Upload: Simply drag and drop your ZIP file to import
- Automatic Image Import: All images are imported to the WordPress Media Library
- CSS Integration: Choose to add CSS inline, to theme's Additional CSS, or both
- Template Support: Works with Elementor Canvas, Blank templates, and theme templates
- Z.ai Context: Export includes context file for seamless AI development
- Import/Export History: Track all your imported and exported pages
- Config File Support: Include a config.json for automatic page settings
Installation
- Download the
rp-page-importer.zipfile - Go to WordPress Admin > Plugins > Add New
- Click Upload Plugin and select the ZIP file
- Click Install Now and then Activate
Usage - Import
-
Go to WordPress Admin > Page Importer
-
Drag and drop or click to select your ZIP file
-
Configure import options:
- Page Title: The title for your new page
- Page Slug: The URL slug (e.g.,
servicesfor/services/) - Page Template: Choose from available templates
- CSS Location: Where to add your CSS styles
- Status: Publish, Draft, or Private
- Parent Page: Set a parent page if needed
- Replace Existing: Update existing page with same slug
-
Click Import Page
Usage - Export
- Go to WordPress Admin > Page Importer > Export tab
- Select a page to export from the dropdown
- Configure export options:
- Include images: Download images from Media Library
- Extract CSS: Separate inline CSS to style.css
- Include Z.ai context: Add context file for AI development
- Add development notes (what changes you want Z.ai to make)
- Click Preview Export to see the content, or Export ZIP to download
Export ZIP Contents
The exported ZIP includes:
index.html- Page HTML contentstyle.css- Extracted CSS styles (if option selected)config.json- Page settings and metadatazai-context.md- Context file for Z.ai developmentimages/- Images from the page (if option selected)
Z.ai Context File
The context file (zai-context.md) includes:
- Page information (title, slug, URL, template)
- WordPress environment details
- List of images used
- Your development notes
- Instructions for Z.ai on how to modify the page
ZIP File Structure for Import
Your ZIP file can have one of the following structures:
Simple Structure
your-page.zip
├── index.html (or page.html) - Required
├── style.css (or styles.css) - Optional
├── config.json - Optional
└── images/ - Optional
├── image1.jpg
├── image2.png
└── ...
Package Structure
your-page.zip
└── package-folder/
├── index.html
├── style.css
├── config.json
└── images/
└── ...
Config File (config.json)
Include a config.json file to pre-configure page settings:
{
"title": "Our Services",
"slug": "services",
"template": "elementor_canvas",
"description": "Page description",
"meta": {
"_yoast_wpseo_title": "SEO Title",
"_yoast_wpseo_metadesc": "Meta description"
}
}
Available Config Options
| Field | Type | Description |
|---|---|---|
title |
string | Page title |
slug |
string | URL slug |
template |
string | Page template (e.g., elementor_canvas, blank) |
description |
string | Page description (for reference) |
status |
string | publish, draft, or private |
meta |
object | Custom meta fields |
CSS Location Options
- Inline: CSS is added directly in the page content wrapped in `
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.