plugin-icon

DMValdez Clean Post Toolkit

投稿者: donaldmvaldez·
Keep standard blog posts clean and fast: block Elementor on posts, then give editors native buttons and accordions instead.
バージョン
1.2.0
最終更新日時
Jul 5, 2026

DMValdez Clean Post Toolkit solves the classic battle between clean site architecture and editor convenience.

When editors use heavy page builders like Elementor on standard blog posts, it creates “div soup,” slows down page loads, and makes future theme migrations a nightmare. This plugin programmatically disables Elementor on the standard post post type and shows a friendly one-time modal explaining why — then hands editors a lightweight Classic Editor toolbar so they never have to reach for a page builder just to add a button or an FAQ.

Everything the toolbar inserts renders as clean, semantic HTML5 — no page-builder markup, no extra database bloat, and styling ships as a single small CSS file shared by the frontend, the block editor, and the Classic Editor’s own WYSIWYG iframe.

What’s included

The Enforcer — removes Elementor support from the post post type only (Pages and custom post types are untouched), and shows a one-time educational modal on post-new.php explaining the policy.

Buttons — [postguard_btn] — a theme-styled button that inherits your active theme’s Elementor button classes, so it looks native even with Elementor disabled. Inserted via a toolbar dialog with a live color-picker popup; every option is optional and defaults to your theme’s normal look:

  • text, link — button label and URL.
  • styledefault (inherits theme), primary, or outline.
  • radiussquare, md (rounded), or pill.
  • paddingsm, md, or lg; or padding_custom (px) to override with an exact value.
  • alignleft, center, right, or full (full width).
  • bg_color, text_color, hover_bg_color, hover_text_color — hex colors, independent hover state.
  • border_color, border_width — add or override a border on any style.

Accordions — [postguard_accordion_group] / [postguard_accordion_item] — pure HTML5 <details>/<summary> accordions, zero JavaScript on the frontend. The toolbar’s “Insert Accordion” dialog builds a full FAQ block in one pass — a 3-column grid for up to 9 question/answer pairs, plus shared styling options:

  • question_tag — render each question as h2, h3, h4, or plain text (semantically valid — a heading is allowed as the sole child of <summary>).
  • default_statenone (all collapsed), first (first item open), or all (all open) on page load; any individual item can also force itself open with open="yes".
  • item_spacing, row_padding — px values controlling the gap between cards and internal padding.
  • bg_color, title_color, content_color, hover_bg_color, hover_title_color — hex colors, cascading to every item in the group automatically.

The legacy single-item shortcode [postguard_accordion title="..."]answer[/postguard_accordion] still works standalone for hand-written content.

Toolbar helpers — a “Pick a Color” popup gives editors a real color picker with a copyable hex readout for any of the fields above, and a “Request a feature” link in both dialogs points straight to the support forum.

Requirements

The Classic Editor (either natively, or via the Classic Editor plugin) is required to see the toolbar button — the toolkit hooks into TinyMCE’s mce_buttons/mce_external_plugins filters. Shortcodes themselves render correctly regardless of which editor inserted them.

無料有料プラン
インストールすることで、WordPress.com の利用規約サードパーティプラグイン利用規約に同意したことになります。
最大テスト回数
WordPress 7.0
このプラグインをダウンロードして、 サイトに使用できます。