[WordPress] 外掛分享: Pagebreak Description

首頁外掛目錄 › Pagebreak Description
90+
安裝啟用
★★★★★
5/5 分(1 則評價)
35 天前
最後更新
問題解決
WordPress 6.6+ PHP 8.0+ v1.12 上架:2024-01-12

內容簡介

Pagebreak Description 外掛允許使用者在頁面中插入分頁符號及其前後描述,這些值將用於分頁功能,提升內容的可讀性與結構性。

【主要功能】
• 插入分頁符號與描述
• 支援自訂 CSS 樣式
• 提升內容的可讀性

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.12) 或搜尋安裝

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

原文外掛簡介

Enter page breaks and before/after descriptions. Values are used in pagination.
Do not mix this block with the Page Break block, as it may cause the comment to be misaligned.

How it works

Filter hooks
/** ==================================================
* Filter for CSS URL.
* Default CSS -> /pagebreak-description/css/style.css
*/
add_filter(
'pagebreak_description_css',
function() {

/* If you put mydesign.css in wp-content/uploads */
$wp_uploads = wp_upload_dir();
$upload_url = $wp_uploads['baseurl'];
if ( is_ssl() ) {
$upload_url = str_replace( 'http:', 'https:', $upload_url );
}
$upload_url = untrailingslashit( $upload_url );
$url = $upload_url . '/mydesign.css';

return $url;
},
10,
1
);

文章
Filter
Mastodon