Linux 软件免费装
Banner图

Empty P Tag

开发者 husainahmedqureshi
更新时间 2026年11月10日 13:30
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

wpautop content-cleanup empty-paragraph remove-empty-p br-tags

下载

6.0.0 5.0.0

详情介绍:

Empty P Tag keeps your front-end markup clean when WordPress, themes, builders, or editors insert unwanted empty <p> / <br> tags that create awkward spacing. The problem Empty paragraphs and stray breaks often appear after pasting content, mixing classic and block markup, or using WYSIWYG fields. They push layouts apart and are hard to spot in the visual editor. What it does Safety first Front-end cleanup is non-destructive: the plugin filters rendered output and does not rewrite post content in the database unless you explicitly enable clean-on-save on a post. Useful when Page builders Plugins like Elementor often render outside the_content. Empty P Tag cleans WordPress content filters (posts, excerpts, widgets, comments, terms, ACF). It does not rewrite every builder canvas. Privacy This plugin does not collect, store, or send personal data. There is no telemetry. Developers Filters include: Release Notes — Version 6.0.0 This release turns Empty P Tag into a clearer, safer, more flexible cleanup tool while keeping older sites stable. What's new Upgrade notes

安装:

From the WordPress admin
  1. Go to Plugins → Add New.
  2. Search for Empty P Tag.
  3. Click Install Now, then Activate.
  4. Open Settings → Empty P Tag and choose a preset.
Manual install
  1. Upload the empty-p-tag folder to /wp-content/plugins/.
  2. Activate Empty P Tag from the Plugins screen.
  3. Configure options under Settings → Empty P Tag.

屏幕截图:

  • Live Before → After HTML preview so you can see empty `<p>` / `<br>` cleanup before saving.
  • Scope settings: choose post types and exclude specific post IDs from cleanup.
  • Block editor sidebar: skip cleanup on one page, or optionally clean permanently on save.
  • Integrations and advanced options: ACF, comments, filter priority, and safer cleanup toggles.

升级注意事项:

6.0.0 Adds presets, preview, ACF/comments cleanup, per-post controls, and safer options for new installs. Existing sites keep classic defaults unless you change them.

常见问题:

Will this change my posts in the database?

No by default. Front-end filters clean rendered HTML only. Permanent changes happen only if you enable clean-on-save and check that option on a specific post.

Does this disable all paragraph formatting?

Only if those options stay enabled. Use the Recommended (safe) preset to keep wpautop on and still strip empty tags.

Does it work with the Block Editor (Gutenberg)?

Yes. Cleanup runs on rendered content. Per-post skip / clean-on-save controls appear in the document sidebar when enabled.

Does it support ACF?

Yes. Enable the ACF WYSIWYG (and optionally textarea) toggles under Integrations.

Will it fix Elementor / Divi spacing?

Not fully. Those builders often bypass the_content. Use Empty P Tag for WordPress content areas; for builder canvases, prefer the builder’s own spacing controls or CSS.

I upgraded and my layout looks different

Open Settings → Empty P Tag and apply Classic Empty P Tag, or turn off only the option that conflicts with your theme. Existing installs keep previous defaults for missing keys.

Can developers customize cleanup?

Yes. See the developer filters listed in the Description.

更新日志:

6.0.0 5.0.0 4.1 3.0 2.0.1 1.0.1 1.0.0