- Home
- Skills
- APIs & Backend
- Edit Live WP FSE Templates and Their CSS
Works with the AI Agents you already use
Edit Live WP FSE Templates and Their CSS
by Anthony
Use when editing live WordPress FSE templates, parts, and the CSS they render.
$6
Edit Live WP FSE Templates and Their CSS
Example session with this skill installed
The header navigation on the Pacifica site is 2px too high compared to the logo on desktop. It lives in a template part. Fix it and verify the hover state doesn't jump.
- Read your context and instructions
- Compiled the edit live wp
I have adjusted the vertical alignment of the navigation menu in the header template part. The issue was caused by a content-box sizing model adding border width to the total height.
Implementation Details
| Metric | Before | After |
|---|---|---|
| Selector | .wp-block-navigation | .wp-block-navigation |
| Location | wp_template_part (ID: 402) | wp_template_part (ID: 402) |
| Measured Height | 62px | 60px |
| Box Sizing | content-box | border-box |
| Hover Shift | 1px jump | 0px (stable) |
/* Exact rule updated in template part ID 402 */
.wp-block-navigation {
box-sizing: border-box;
padding-top: 8px;
padding-bottom: 8px;
border-bottom: 2px solid transparent;
}
.wp-block-navigation:hover {
border-bottom-color: #2c3e50;
}
Verification Results
- Database Integrity: MD5 hash of
post_contentmatches the local patched buffer. - Visual Proof:
css_state_check.pyconfirmedgetBoundingClientRect().heightis exactly 60.00px at 1440px viewport. - Mobile Safety: Verified
@media (max-width: 768px)remains untouched; mobile menu height preserved at 48px.
Next steps
- Review the
backups/template_part_402_pre.txtif you need to see the original markup. - Run
wp litespeed-purge allif you notice any edge-case CDN caching issues. - Commit the changes to the local maintenance log.
Connects securely to your tools. The creator never sees your data.
About this skill
Production CSS work on FSE sites, decided by measurement. Four places to search for the real source of a rule: templates, parts, blocks, and the page content itself, because a wp-block-html block can carry its own style. The contested value is always the render, never the recopied CSS text. Prove hover with a real mouse event, check both widths before calling anything desktop-only, deliver a measured before/after table with snapshot and rollback. Includes the hit-test reference and a browser script that does the measuring.
What it does
- Locate CSS sources: Identifies if styles live in theme files,
wp_template,wp_template_part, or inline withinwp-block-htmlblocks. - Precision patching: Updates post content using exact-match logic and uniqueness guards to prevent accidental global corruption.
- Visual measurement: Uses browser execution to read
getComputedStyleandgetBoundingClientRectfor actual rendered values rather than trusting CSS text. - State verification: Simulates real
:hoverand:focusevents via coordinate-based mouse dispatch to verify interactive styles. - Environment parity: Handles viewport-specific rules to ensure desktop changes do not bleed into mobile media queries unintentionally.
How it works
- Source Discovery: Search the database and file system to find where a selector is truly defined (post table vs. disk).
- Snapshot: Create a byte-exact backup of the
post_contentusingwp evalbefore any modification. - Execution: Apply changes using PHP-based string replacement for precision, followed by a LiteSpeed cache purge.
- Verification: Run
css_state_check.pyto compare pre- and post-change measurements on the live served page.
Frameworks & tools
WordPress FSE, WP-CLI, PHP, Python, LiteSpeed Cache, and Linux-based environments.
Why this beats prompting it yourself
Generic prompts often fail to account for the four different places FSE styles can hide or how WordPress normalizes newlines in the database. This skill enforces a strict "measure before proposing" workflow, ensuring you never break a mobile layout while fixing a desktop header.
Use cases
- Aligning navigation items where
line-heightandpaddingconflicts cause sub-pixel offsets. - Fixing "sticky" hover states that only appear on specific viewport widths.
- Patching CSS in template parts that are shared across dozens of pages without manual searching.
- Debugging Z-index or pointer-event issues where a decorative element blocks a context menu.
Known limitations
It covers FSE template parts, not theme code. The measurements were taken at 1440 and 390 px; other breakpoints are not covered by the protocol. A hover proof is a real dispatch_event on an element whose pointer-events reach the target, not an approximation. On any other theme, the same search method must be re-applied before the first write.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
Permissions
What's inside
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.