Create Theme Builder Template Ability: Add Headers Footers and More in WordPress

Key Takeaways

  • Nexter Extension supports eight template types including header, footer, and page-404.
  • Templates are created as inactive by default and require nexter/toggle-template-builder to activate.
  • The ability returns an edit_url to open the template directly in Elementor after creation.
Table of Contents

The nexter/create-template-builder ability creates a new Theme Builder template in Nexter Extension. It supports eight template types: header, footer, breadcrumb, hooks, singular, archives, page-404, and section. You can set display rules and type-specific options on creation. After creating a template, open it in Elementor to design the visual content.

Key Takeaways

Templates are created as inactive by default. Use nexter/toggle-template-builder to activate.

Supported types are header, footer, breadcrumb, hooks, singular, archives, page-404, and section.

Use standard-universal as the display rule to show a template across the entire site.

The hooks type requires a hook_action parameter specifying which WordPress action hook to attach to.

The ability returns an edit_url to open the template directly in Elementor after creation.

Required Setup

The Theme Builder feature must be enabled in Nexter Extension. Use nexter/list-extensions to confirm it is active. After designing the template in Elementor, use nexter/toggle-template-builder to make it live on the site.

Parameters

Only title and type are required. Type-specific parameters only apply to their matching template type.

title (string, required) sets the template name.

type (string, required) sets the template type. Options: header, footer, breadcrumb, hooks, singular, archives, page-404, section.

post_status (string, optional) sets the WordPress post status. Options: publish, draft. Defaults to publish.

display_rules (array of strings, optional) controls where the template appears. Example: standard-universal for the full site.

exclude_rules (array of strings, optional) excludes specific locations from the display rules.

activated (boolean, optional) sets whether the template goes live immediately. Defaults to false.

sticky_header (string, optional) sets header sticky behavior. Header type only.

transparent_header (string, optional) sets header transparency. Header type only.

footer_style (string, optional) sets the footer style variant. Footer type only.

hook_action (string, optional) sets the WordPress hook to attach to. Hooks type only.

hook_priority (string, optional) sets the hook execution priority. Defaults to 10. Hooks type only.

disable_header_404 and disable_footer_404 (string, optional) hide the header or footer on 404 pages. page-404 type only.

What It Returns

The ability returns a confirmation object with the new template details.

success (boolean) confirming the template was created.

id (integer) of the new template post for use in subsequent toggle, update, or delete calls.

edit_url to open the template directly in Elementor for visual design.

When to Use This Ability

Create a custom header or footer and assign it to specific pages or the full site.

Add a custom 404 page template to replace the default WordPress not-found layout.

Attach a content block to a WordPress action hook using the hooks template type.

Build reusable section templates to insert consistently across multiple pages.

Related Documentation

nexter/toggle-template-builder: Activate or deactivate a template after creation

nexter/list-templates-builder: View all existing templates and their IDs

nexter/update-template-builder: Edit display rules or settings on an existing template

About the Author

sandip patel

WordPress Developer at POSIMYTH Innovations I am a passionate WordPress Developer at POSIMYTH Innovations, where I focus on building high-performance products and cutting-edge web experiences. Currently, I contribute to the development of major projects including The Plus Addons for Elementor, Sticky Header for Elementor, RankReady AI (LLM & SEO), and the SproutOS MCP server integration. I love bridging the gap between WordPress core functionality and modern AI capabilities. Beyond standard development.

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!