首页/AI 应用构建与集成/wordpress-elementor
W

wordpress-elementor

by @jezwebv
4.3(89)

掌握WordPress和Elementor的前端开发技能,支持Claude Code CLI进行全栈开发,尤其擅长与Cloudflare集成,快速构建响应式网站。

wordpresselementorpage-builderweb-designcmsGitHub
安装方式
npx skills add jezweb/claude-skills --skill wordpress-elementor
compare_arrows

Before / After 效果对比

1
使用前

在没有 Elementor 等页面构建器时,创建 WordPress 页面通常需要手动编写 HTML、CSS 和 JavaScript,或者依赖主题自带的有限编辑器。这要求较高的编码技能,且设计修改效率低下,难以实现复杂布局和动态效果。

使用后

使用 WordPress Elementor 技能后,通过直观的拖放界面和丰富的预设组件,即使是非技术用户也能快速构建出专业且响应式的页面。设计修改实时可见,大大提升了页面构建的速度和设计的灵活性。

SKILL.md

wordpress-elementor

WordPress Elementor

Edit Elementor pages and manage templates on existing WordPress sites. Produces updated page content via browser automation (for visual/structural changes) or WP-CLI (for safe text replacements).

Prerequisites

  • Working WP-CLI connection or admin access (use wordpress-setup skill)

  • Elementor installed and active: wp @site plugin status elementor

Workflow

Step 1: Identify the Page

Find the page to edit:

# List Elementor pages (pages with _elementor_data meta)
wp @site post list --post_type=page --meta_key=_elementor_edit_mode --meta_value=builder \
  --fields=ID,post_title,post_name,post_status

# Get the Elementor edit URL
# Format: https://example.com/wp-admin/post.php?post={ID}&action=elementor

Step 2: Choose Editing Method

Change Type Method Risk

Text content updates WP-CLI search-replace Low (with backup)

Image URL swaps WP-CLI meta update Low (with backup)

Widget styling Browser automation None

Add/remove sections Browser automation None

Layout changes Browser automation None

Template application Browser automation None

Rule of thumb: If you're only changing text or URLs within existing widgets, WP-CLI is faster. For anything structural, use the visual editor via browser.

Step 3a: Text Updates via WP-CLI (Safe Method)

Always back up first:

# Export the Elementor data
wp @site post meta get {post_id} _elementor_data > /tmp/elementor-backup-{post_id}.json

Simple text replacement:

# Dry run — check what would change
wp @site search-replace "Old Heading Text" "New Heading Text" wp_postmeta \
  --include-columns=meta_value \
  --dry-run --precise

# Execute (after confirming dry run looks correct)
wp @site search-replace "Old Heading Text" "New Heading Text" wp_postmeta \
  --include-columns=meta_value --precise

After updating, clear Elementor's CSS cache:

wp @site elementor flush-css

If the elementor WP-CLI command isn't available:

wp @site option delete _elementor_global_css
wp @site post meta delete-all _elementor_css

Step 3b: Visual Editing via Browser Automation

For structural changes, use browser automation to interact with Elementor's visual editor.

Open the editor:

  • Navigate to https://example.com/wp-admin/post.php?post={ID}&action=elementor

  • Wait for the editor to fully load (Elementor loading screen disappears)

  • The page appears in the main panel with the widget sidebar on the left

Common editing tasks:

  • Edit text widget: Click on the text element in the preview → edit inline or in the sidebar

  • Edit heading: Click the heading → update text in the sidebar panel

  • Change image: Click image widget → click the image in sidebar → select new from media library

  • Edit button: Click button → update text, URL, and styling in sidebar

  • Save: Click the green "Update" button (or Ctrl+S)

Use playwright-cli for independent sessions:

playwright-cli -s=wp-editor open "https://example.com/wp-admin/"
# Login first, then navigate to Elementor editor
playwright-cli -s=wp-editor navigate "https://example.com/wp-admin/post.php?post={ID}&action=elementor"

Or Chrome MCP if using the user's logged-in session.

See references/elementor-workflows.md for detailed browser automation steps.

Step 4: Manage Templates

List saved templates:

wp @site post list --post_type=elementor_library --fields=ID,post_title,post_status

Apply a template to a new page:

  • Create the page: wp @site post create --post_type=page --post_title="New Page" --post_status=draft

  • Open in Elementor via browser

  • Click the folder icon (Add Template)

  • Select from "My Templates" tab

  • Click "Insert"

  • Customise and save

Duplicate an existing page:

# Get source page's Elementor data
SOURCE_DATA=$(wp @site post meta get {source_id} _elementor_data)
SOURCE_CSS=$(wp @site post meta get {source_id} _elementor_page_settings)

# Create new page
NEW_ID=$(wp @site post create --post_type=page --post_title="Duplicated Page" --post_status=draft --porcelain)

# Copy Elementor data
wp @site post meta update $NEW_ID _elementor_data "$SOURCE_DATA"
wp @site post meta update $NEW_ID _elementor_edit_mode "builder"
wp @site post meta update $NEW_ID _elementor_page_settings "$SOURCE_CSS"

# Regenerate CSS
wp @site elementor flush-css

Step 5: Verify

# Check the page status
wp @site post get {post_id} --fields=ID,post_title,post_status,guid

# Get live URL
wp @site post get {post_id} --field=guid

Take a screenshot to confirm visual changes:

playwright-cli -s=verify open "https://example.com/{page-slug}/"
playwright-cli -s=verify screenshot --filename=page-verify.png
playwright-cli -s=verify close

Critical Patterns

Elementor Data Format

Elementor stores page content as JSON in _elementor_data postmeta. The structure is:

Section → Column → Widget

Each element has an id, elType, widgetType, and settings object. Direct manipulation of this JSON is possible but fragile — always back up first and prefer search-replace over manual JSON editing.

CSS Cache

After any WP-CLI change to Elementor data, you must flush the CSS cache. Elementor pre-generates CSS from widget settings. Stale cache = visual changes don't appear.

wp @site elementor flush-css
# OR if elementor CLI not available:
wp @site option delete _elementor_global_css
wp @site post meta delete-all _elementor_css

Elementor Pro vs Free

Feature Free Pro

Basic widgets Yes Yes

Theme Builder No Yes

Custom fonts No Yes

Form widget No Yes

WooCommerce widgets No Yes

Dynamic content No Yes

Theme Builder templates (header, footer, archive) are stored as elementor_library post type with specific meta indicating their display conditions.

Common Elementor WP-CLI Commands

If the Elementor CLI extension is available:

wp @site elementor flush-css          # Clear CSS cache
wp @site elementor library sync       # Sync with template library
wp @site elementor update db          # Update database after version change

Reference Files

  • references/elementor-workflows.md — Browser automation steps, template management, safe editing patterns

Weekly Installs342Repositoryjezweb/claude-skillsGitHub Stars618First SeenFeb 22, 2026Security AuditsGen Agent Trust HubPassSocketPassSnykWarnInstalled oncodex313gemini-cli312github-copilot311opencode311kimi-cli310amp310

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量1.3K
评分4.3 / 5.0
版本
更新日期2026年5月21日
对比案例1 组

用户评分

4.3(89)
5
24%
4
51%
3
24%
2
2%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月17日
最后更新2026年5月21日