plugin-icon

Stomp

作者:cubecolour·
Stomps the footer element to the bottom of the visible page on short pages.
评级
4/5
版本
1.0.1
活跃安装
80
最后更新
Jun 23, 2025
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’

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.8.3
这个插件是可用的下载,适用于您的站点。