[WordPress] 外掛分享: Page Load Ajax

首頁外掛目錄 › Page Load Ajax
30+
安裝啟用
★★★★★
5/5 分(3 則評價)
313 天前
最後更新
問題解決
WordPress 5.1+ PHP 7.2+ v1.7 上架:2021-05-05

內容簡介

這個外掛的目的是通過僅更新頁面標題和內容而不是重新加載整個網頁來最小化頁面加載時間和資源使用。新的內容和標題是通過 Ajax 調用獲取的。

限制:
由於頁面的其餘部分,如包括所有樣式和腳本的標題、頁腳和側邊欄並不受影響,因此您只應在具有相同整體佈局和要求的頁面之間切換時使用此功能。

您可以在頁面內容中輸入短代碼,它將顯示為一個按鈕或文本鏈接。
當激活鏈接時,頁面標題和內容將被指定頁面的標題和內容替換。

短代碼有四個可能的獨立參數:
– page(必需)。這可以是頁面標題或頁面 ID。
– text(可選)。按鈕文本或文本鏈接文本。
– title-elm(可選)。標題元素 ID 或類,如果不是在設置頁面上輸入的默認值。
– content-elm(可選)。內容元素 ID 或類,如果不是預設值。

範例: [pla page=”Tet page”] [pla page=”5″ text=”去測試頁”] [pla page=”My Page” content-elm=”#my-div”]

外掛標籤

開發者團隊

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

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

原文外掛簡介

The purpose of this plugin is to minimize page load time and resource usage by updating the page title and content only rather then reloading the entire webpage.
The new contents and titles are fetched by ajax calls.
Restriction:
As the rest of the page like header including all styles and scripts, footer and sidebars are not affected, you should only use this to switch between pages with the same overall layout and requirements.
You can enter shortcodes in the page content that will show up as a button or a text link.
When activating the link, the pages title and content will be replaced by the title and content of the specified page.
There are four possible independant arguments to the shortcode:
– page (required). This can be the page title or the page id.
– text (optional). The button text or textlink text.
– title-elm (optional). The title element id or class if it is not the default as entered on the settings page.
– content-elm (optional). The content element id or class if not default.
Examples: [pla page=”Tet page”] [pla page=”5″ text=”Go to the testpage”] [pla page=”My Page” content-elm=”#my-div”]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon