[WordPress] 外掛分享: Just Output

首頁外掛目錄 › Just Output
100+
安裝啟用
★★★★★
5/5 分(1 則評價)
344 天前
最後更新
問題解決
WordPress 4.8.9+ PHP 5.6.0+ v0.9.7 上架:2021-01-25

內容簡介

當您直接輸入 HTML 代碼時,版面配置會取決於 WordPress 自動插入的 p 和 br 標籤。

remove_filter( 'the_content', 'wpautop' );

您可以透過添加以上代碼來解決上述問題。
然而,這將禁用所有自動插入的 p 和 br 標籤。
這並不方便使用者。

這款外掛可以部分禁用。

只需在短代碼中輸入您想禁用的部分代碼即可。

[jo]您的 HTML 代碼[/jo]

此外掛作者非常喜愛文字編輯器。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.9.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Just Output」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

When you enter the HTML code directly, the layout changes depending on the p and br tags that WordPress automatically inserts.
remove_filter( 'the_content', 'wpautop' );

It can be solved by adding the above code.
However, this will disable all auto-inserted p and br tags.
It is not user-friendly.
This plugin can be partially disabled.
Just enter the part you want to disable in the shortcode.
[jo]your HTML code[/jo]

The author of this plugin loves text editors.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon