Pagination – White Space Below Footer(Fix Included)
-
There is an issue when you create multi-step forms, or in Forminator speak – add a Pagination field to a form. Without Pagination, i.e. a single page form, the footer of a theme stays where it should.
With Pagination – with every Pagination field added the theme’s footer moves upwards, leaving more and more white space below it.
There is a ticket on your support forum that shows the same issues –
Although the OP doesn’t get as far as explaining what specifically caused his issue. On a site I experienced it with – WP is current as of today & so is the Forminator plugin. I was able to reproduce it many times – as soon as a a Pagination field was added the footer moved upwards, with white space behind it. Additional Pagination fields pushed it further.
I’ve address it by the following changes to the \wp-content\plugins\forminator\build\front\front.multi.min.js file –
go_to: function(t, e) {
if (this.step = t, t === this.totalSteps) return !1;
this.$el.find(“.forminator-pagination”).css({
//height: “0”,
height: “auto”,
opacity: “0”,
//visibility: “hidden”
display: “none”
}).attr(“aria-hidden”, “true”), this.$el.find(“[data-step=” + t + “]”).css({
height: “auto”,
opacity: “1”,
//visibility: “visible”
display: “block”
}).removeAttr(“aria-hidden”);I’ve left the original lines commented out. I’ve test the fix on Edge, Chrome & FF and I no longer have any issues with the white space. Basically it’s the difference between display: none & visibility: hidden – in the former case the element takes up no space and in the latter it still does.
Hope it helps someone and perhaps it can be incorporated into the plugin.
- The topic ‘Pagination – White Space Below Footer(Fix Included)’ is closed to new replies.