-1

Client didn't want to have the responsiveness from the website, so we have totally removed responsiveness from the bootstrap based wordpress theme. Now the website is looking how it looks like in Desktop. However, on the cart page, as there are not much content or div elements, the page ends very soon, thus causing the white space which isn't looking good.

I've posted the screenshot below. There is fixed footer at the end, it is also not visible on that page. Any advice will be appreciated.

I've given these two in the header.

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="viewport" content="width=device-width" />

enter image description here

EDIT: Due to not having sufficient content on that particular website page mobile is displaying it's default behavior of showing white space. It could be solved by having min-height.

Shoeb Mirza
  • 912
  • 1
  • 11
  • 30

2 Answers2

0

As you have mentioned the footer is positioned fixed, you need to set the bottom style property to 0 [bottom:0 !important], and you need to implement media-query in order to have it implemented only for mobile as it's only happening while opening website in mobile.

So i might consider adding following code in your custom.css

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
/* footer class or footer id */
.footer-class {
bottom: 0 !important;
}
}
0

Check if there is a code (for example .js) that manipulates the view. In my case such a behaviour was caused by animations (bounceInUp, bounceInDown)

Klapsa2503
  • 829
  • 10
  • 33