[WordPress] 外掛分享: Stomp

首頁外掛目錄 › Stomp
WordPress 外掛 Stomp 的封面圖片
80+
安裝啟用
★★★★
4/5 分(2 則評價)
268 天前
最後更新
問題解決
WordPress 4.5+ v1.0.1 上架:2016-08-10

內容簡介

此外掛可將頁腳元素推到短頁面的可見部分底部。

使用方式:

當文件本體的高度小於瀏覽器視窗的內部高度時,此外掛會將頁腳固定在頁面底部以防止頁腳元素和可見頁面底部之間出現間隙。

如果此外掛未對任何短頁面的頁腳元素產生影響,這可能是因為您的頁腳未被標記為HTML5的“footer”元素。相反,它可能被標記為其他元素,例如帶有“footer”、“site-footer”或其他類名或ID的div元素。

如果是這種情況,則可以添加常數以定義您的頁腳元素的CSS選擇器,方法是在wp-config.php中添加以下行:

define('STOMP_FOOTER_ELEMENT','.site-footer');

在以下行之前:

/* That's all, stop editing! Happy blogging. */

在此示例中,STOMP_FOOTER_ELEMENT的值為“.site-footer”

外掛標籤

開發者團隊

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

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

原文外掛簡介

Stomps the footer element to the bottom of the visible page on short pages.
Usage:
When the height of the document body is less than the internal height of the browser window, this plugin prevents a gap appearing between the footer element and the bottom of the visible page by fixing the footer to the bottom of the page.
If the plugin does not have any effect on the footer of any short pages, this may be due to your footer not being marked up as an HTML5 ‘footer’ element. It may have instead been marked up as another element such as a div with a class or id of ‘footer’, ‘site-footer’, or something else.
If this is the case you can add a constant to define the CSS selector for your footer element by editing your wp-config.php by adding the line:
define( 'STOMP_FOOTER_ELEMENT', '.site-footer' );

before the line:
/* That's all, stop editing! Happy blogging. */

In this example the value of STOMP_FOOTER_ELEMENT is ‘.site-footer’

延伸相關外掛

文章
Filter
Mastodon