Works with the AI Agents you already use

    Edit Live WP FSE Templates and Their CSS

    by Anthony

    1

    Use when editing live WordPress FSE templates, parts, and the CSS they render.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Edit Live WP FSE Templates and Their CSS

    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

    MetricBeforeAfter
    Selector.wp-block-navigation.wp-block-navigation
    Locationwp_template_part (ID: 402)wp_template_part (ID: 402)
    Measured Height62px60px
    Box Sizingcontent-boxborder-box
    Hover Shift1px jump0px (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_content matches the local patched buffer.
    • Visual Proof: css_state_check.py confirmed getBoundingClientRect().height is 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.txt if you need to see the original markup.
    • Run wp litespeed-purge all if 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 within wp-block-html blocks.
    • Precision patching: Updates post content using exact-match logic and uniqueness guards to prevent accidental global corruption.
    • Visual measurement: Uses browser execution to read getComputedStyle and getBoundingClientRect for actual rendered values rather than trusting CSS text.
    • State verification: Simulates real :hover and :focus events 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

    1. Source Discovery: Search the database and file system to find where a selector is truly defined (post table vs. disk).
    2. Snapshot: Create a byte-exact backup of the post_content using wp eval before any modification.
    3. Execution: Apply changes using PHP-based string replacement for precision, followed by a LiteSpeed cache purge.
    4. Verification: Run css_state_check.py to 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-height and padding conflicts 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Network Access
    Read Files
    Listed6 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the 'FSE style ghosting' problem by identifying exactly where a style is stored—whether it's in the database, theme files, or inline—and uses browser-based measurements to verify that CSS changes actually render as intended without breaking layouts.

    The skill requires a Linux-based WordPress environment with WP-CLI installed and the ability to execute Python scripts for the browser-based verification step. Ensure your hosting environment allows shell execution via these tools for full functionality.

    Yes, the 'Precision Patching' system uses exact-match logic and unique guards to ensure edits are applied specifically to the intended template or part, preventing the accidental global style corruption common with generic find-and-replace methods.

    This skill is designed for AI agents with access to a filesystem and terminal (such as an IDE agent or a local automation worker) that can interface with your WordPress server's WP-CLI and run the validation scripts.

    Unlike standard editors that only show code, this skill uses a Python-based execution layer to check 'getComputedStyle' on the live page, ensuring that factors like specificity or cache layers aren't overriding your new styles.

    You receive the specialized skill logic for WordPress source discovery, the snapshot and patching protocols, and the custom Python verification scripts used to measure rendered CSS states.

    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.