Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

Stomp

Stomps the footer down to the bottom of the page when the page content is short

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'

Author cubecolour
Profile
Contributors numeeja
Tags content, fix, footer, short, static
  1. stomp screenshot 1

    Without this plugin active, and when the content is short, the footer floats above the bottom of the page looking rather silly.

  2. stomp screenshot 2

    With this plugin active, and when the content is short, the footer is pushed down to the bottom of the browser window.

  3. stomp screenshot 3

    When the content is long, the footer keeps its default position so offscreen on page load…

  4. stomp screenshot 4

    And will be visible on scrolling down as normal.

  1. Upload the plugin folder to the '/wp-content/plugins/' directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

1.0.1

  • Initial Version

When scrolled to the end, will the fixed footer hide any content?

No, the footer is only fixed when the body is shorter than the the browser height. The footer will be displayed normally otherwise - including on any pages with enough content that a vertical scrollbar is shown.

Where is the admin page?

The only option in this plugin can be set by a constant in the wp-config.php, so there is no admin page. This might change in a future version.

Why doesn't it work on my site?

If this plugin is not working for you, this could be due to

  • your theme not being built to WordPress standards
  • a conflict with another plugin
  • The element on your site that looks and acts as a footer is not actually an HTML5 'footer' element. In this case read the documentation for instructions to change the element the plugin acts on.

Please ask for help on the plugin support page on WordPress.org.

The plugin does work as it is designed to on all of the sites it has been tested on, however it is not possible for me to test on every available theme and with all combinations of other plugins active. If the plugin is not working for you as you expect it to, please read the documentation carefully to check that you are using it correctly. Then review the topics in the plugin support forum. You may find an appropriate solution outlined in a resolved topic if someone had the same or a similar issue. If you do not find an answer that enables you to solve your issue, please post a new topic on the forum so we have an opportunity to get it working before you consider leaving a review.

Why do I need to edit the wp-config.php to specify the selector of my footer element? A setting would be easier

A well-made modern theme should be using semantic elements and for anyone using one of these themes a setting would not be required. The workaround to specify a different element was included for anyone using a theme that does something different.

What levels of support are available?

I offer free forum support for free cubecolour plugins. For free support all communication must take place on the WordPress.org forums and a link to your site must be provided where I can I can see the issue without needing any kind of password.

Non-free support via email is also available if the free support is not compatible with the level of support you require. Paid support via email can be requested at: cubecolour.co.uk/premium-support

If your theme is doing something unusual which prevents the plugin working, and it still does not work after defining a value for STOMP_FOOTER_ELEMENT, you may require a custom version of the stomp plugin specific to your theme. Creating this for you is outside the scope of the free support that I am able to provide, however a custom version of the plugin can be commissioned as a paid job by sending your request via the premium support page.

I am using the plugin and it has saved me time and/or money. How can I show my appreciation?

You can donate any amount via my donation page. All donations are gratefully received. If you find the plugin useful I would also appreciate a glowing five star review on the plugin review page

Share  
Download
Version 1.0.1

Requires WordPress version: 4.5 or higher

Compatible up to: 4.7.2

Last Updated 11 Dec 2016

Date Added: 11 Aug 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

5 stars
1 ratings
275 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0