Create ElementsKit header/footer is a WordPress ability from ElementsKit Elementor Addons — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Create ElementsKit header/footer

Write
ElementsKit Elementor Addons Page Builders elementskit/create-header-footer

Create a header or footer template and activate it site-wide, optionally built from a ready-made Template Library template.

Requires the ElementsKit Elementor Addons plugin (elementskit-lite) with Elementor active, on WordPress 6.9+ for the Abilities API (abilities are registered only when wp_register_ability() exists). Read-only listing abilities require 'edit_posts' (list-widgets, list-templates, list-library-templates), 'manage_options' (list-custom-widgets), or 'edit_theme_options' (list-mega-menus); write abilities that target a specific Elementor document (insert-widget, insert-template, import-library-template) require 'edit_posts' plus 'edit_post' on that document; template, header/footer, custom-widget, and mega-menu creation/configuration abilities require 'manage_options' (create-mega-menu additionally requires 'edit_theme_options'); create-page requires 'edit_pages' or 'edit_posts'.

What it does

This ability composes create-template and, when a template_id is supplied, import-library-template: it creates a new elementskit_template of type header or footer with activation defaulted to 'yes' (so it takes effect immediately) and a display condition defaulting to entire_site, then either fills it from a Template Library template or seeds it with a supplied elements tree. It returns the new template's id, type, whether it was activated, its condition, an edit_url, and a preview_url. This is the fastest way for an AI assistant to stand up a working, live header or footer in one call instead of chaining create-template plus a separate content step.

See it in action

You ask your AI assistant

"Create a new site-wide header using library template 10006762."

Inputs

Name Type Required Description
type string No "header" or "footer". Defaults to "header".
title string No Template title.
condition string No Display condition. Defaults to "entire_site".
activation string No "yes" or "no". Defaults to "yes".
template_id string No Library template id to build the header/footer from.
elements array No Element tree to seed with (ignored if template_id is given).

Returns

An object with success, id, type, activated (boolean), condition, edit_url, and preview_url.

Permission

Requires the 'manage_options' capability.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.