Linux 软件免费装

Developersd Custom Theme Templates

开发者 developersd
sudipdebnath
更新时间 2026年8月20日 06:37
PHP版本: 8.1 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

drag and drop page templates template builder custom templates theme templates

下载

1.5.0

详情介绍:

Normally, WordPress theme templates are created by adding PHP files to the active theme. Developersd Custom Theme Templates lets administrators build custom templates directly from wp-admin, with a visual drag-and-drop builder, and have them appear in the native Template dropdown when editing Pages, Posts, or supported Custom Post Types. The plugin never creates or modifies theme files. Templates are stored as structured JSON and rendered dynamically, so they survive theme switches and updates. Key Features Security Developers Every function, class, hook, option, database key, and AJAX action is prefixed with developersd_ to avoid naming collisions. The codebase follows WordPress Coding Standards and an OOP, single-responsibility architecture: Extend the builder via filters:

安装:

  1. Upload the developersd-custom-theme-templates folder to /wp-content/plugins/, or install the zip via Plugins → Add New → Upload Plugin.
  2. Activate the plugin through the Plugins screen.
  3. Go to Custom Theme Templates → Add New (its own top-level menu item in the admin sidebar) to build your first template.
  4. Under Template Assignment, choose which post types the template should be available for.
  5. Edit a Page, Post, or supported CPT, and choose your new template from the Template dropdown in the Page Attributes / Summary panel.

常见问题:

Does this plugin modify my theme files?

No. Templates are stored as JSON in the database and rendered at request time through a template_include hook. Nothing is ever written to your theme's directory.

What happens if I switch themes?

Templates keep working, since your theme's get_header() and get_footer() are still used — only the main content area is generated by the plugin.

What HTML tags can I use in the builder?

div, section, header, footer, article, aside, main, nav, h1–h6, p, span, and strong. Script tags, iframes, inline styles, and PHP are never allowed.

What happens to my data if I delete the plugin?

All templates, categories, and settings are permanently removed when the plugin is deleted from the Plugins screen (not on simple deactivation).

Will another plugin (like a page builder) override my assigned template?

No. Once a template is assigned to a page/post (either explicitly, or as a post type's global default), the plugin takes over rendering as early as possible in the request — before other plugins' own template logic typically runs — and stops the request from continuing to any other template resolution. This is intentionally the highest-priority mechanism available to a normal WordPress plugin.

Can every post of a type (e.g. every blog post) share one template automatically?

Yes. On a template's edit screen, under Template Assignment, check "Use as global default" next to a post type. Every post of that type will use it automatically unless that specific post explicitly picks a different template. Only one template can be the global default per post type at a time.

How does the Dynamic Featured Image content type work?

Set an element's Content Type to "Dynamic Featured Image", then choose Image Display: "Background Image" applies the current post's featured image as that element's CSS background (with Background Size/Position/Repeat, and a Min Height so it's actually visible — 150px by default if left blank) — check "Center content over this image" to vertically/horizontally position child elements (a title, text, a button) on top of it for a hero/banner section. "Normal Image" instead renders it as a plain, ordinary <img>, with an optional Image Fit control.

Can I add a sidebar?

Yes. On a template's edit screen, the Sidebar metabox lets you enable a sidebar with its own drag-and-drop element tree (built exactly like the main content), choose which side it sits on, set its width as a percentage (main content automatically fills the rest), and set the screen width at and below which it stacks under the content as full width instead of sitting beside it.

更新日志:

1.5.0 1.4.3 1.4.2 1.4.1 1.4.0 1.3.3 1.3.2 1.3.1 1.3.0 1.2.2 1.2.1 1.2.0 1.1.2 1.1.1 1.1.0 1.0.0