Apply Sticky Header Settings is a WordPress ability from Sticky Header Effects for Elementor — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Apply Sticky Header Settings
WriteEnable the sticky effect on an existing Elementor header and merge in the given effect settings.
Requires the Sticky Header Effects for Elementor plugin on WordPress 6.9+ for the Abilities API — the plugin's includes/abilities/class-she-abilities.php registers its abilities only when wp_register_ability() exists, and is a no-op on older cores. Each ability is additionally gated by a WordPress capability check: list-effects and validate-demo require edit_posts / edit_post on the target post, apply-settings requires edit_post on the target post, and create-demo requires both edit_theme_options and publish_posts. Abilities operate on Elementor templates/pages, so the target post must already contain Elementor data (_elementor_data) for apply-settings and validate-demo to act on it.
What it does
This ability applies sticky-header effect settings to an existing Elementor header template or page. It loads the post's _elementor_data, filters the incoming settings map against the allowed setting keys (from get_allowed_setting_keys, which Pro can extend via the she_abilities_allowed_setting_keys filter), always forces transparent to 'yes' so the sticky effect is turned on, then merges the clean values into the target element — either the one identified by element_id or the first top-level element if omitted — and saves the updated Elementor data. If the post has no Elementor content yet, it returns a WP_Error instructing the caller to use create-demo instead. This lets an AI assistant configure scroll-blur, shrink, hide-on-scroll, or background effects on a real header template in one call instead of hand-editing Elementor's JSON structure.
See it in action
You ask your AI assistant
"On my main header template (post 128), turn on the sticky effect with a 60px scroll distance, shrink the header on scroll, and add a background blur."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| post_id | integer | Yes | ID of the Elementor post/template to update. |
| element_id | string | No | Optional Elementor element id to target. Defaults to the first top-level element. |
| settings | object | Yes | Map of sticky effect setting keys to values. Unknown keys are ignored. |
Returns
An object with a success boolean, the element_id the settings were applied to, and applied_keys listing which setting keys were actually written.
Permission
Requires a non-zero post_id and the current user must have the edit_post capability for that specific post.
More Sticky Header Effects for Elementor abilities
Create Sticky Header Demo
Build a brand-new Elementor header template pre-wired with a sticky effect, optionally with a demo page.
List Sticky Header Effects
Return the full catalogue of available sticky-header effect settings, their types, defaults, and allowed values.
Validate Sticky Header Demo
Check an Elementor post and report whether a sticky header is correctly configured, with any warnings.