Help getting rid of white space below the footer on mobile view only- Spotlight theme

Solved

Help getting rid of white space below the footer on mobile view only- Spotlight theme

gavboy555
Excursionist
23 0 17

Hello, I would like to remove this big white spot that is below the footer and it is only on the mobile view. Any help is greatly appreciated!

URL: https://www.tansokr.com/

Screenshot 2025-04-01 at 9.39.22 PM.png

Accepted Solution (1)

GTLOfficial
Shopify Partner
831 171 188

This is an accepted solution.

Hello @gavboy555 
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

#shopify-section-template--19166707187947__image_banner_KLxJQd .banner__content.banner__content--middle-center {
margin-bottom: 0px !important;
}

result
86.png

Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

View solution in original post

Replies 12 (12)

namphan
Shopify Partner
2678 348 396

Hi @gavboy555,

Please go to theme.liquid file, find '</head>' tag and add code:

{%- if request.page_type == 'index' -%}
      <style>
        body {
          grid-template-rows: auto 1fr auto !important;
        }
      </style>
{%- endif -%}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
gavboy555
Excursionist
23 0 17

Hey I really appreciate your reply once again, this one doesn't seem to work when I add it to theme.liquid.

namphan
Shopify Partner
2678 348 396

Hi @gavboy555,

Can you help me add the code again? I will check it.

Or I can send you a collaborator invitation, it will help me check everything best

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
gavboy555
Excursionist
23 0 17

Thank you! I am doing this now

namphan
Shopify Partner
2678 348 396

Hi @gavboy555,

The error is caused by the body's 'grid-template-columns' code, because it is missing a row, so you just need to change the code for the home page, it will display fine 😊

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
gavboy555
Excursionist
23 0 17

Okay I see. I was messing around with the margins and that wasn't really helping anything. How can I go about adding the missing row?

namphan
Shopify Partner
2678 348 396

Hi @gavboy555,

Can you try with the code I sent before, or can I send you a collaborator invite? it will help me change things quickly

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com
gavboy555
Excursionist
23 0 17

The shopify servers are currently down so I will work on this tomorrow and reach back out to you. Thank you so much!

namphan
Shopify Partner
2678 348 396

Hi @gavboy555,

You're welcome and happy to help 😊

Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

tim
Shopify Partner
4313 495 1582

As mentioned already, this is because body is set to display:grid;. If you change the grid-template it will fix this, but if some app will change your page structure, the problem may reappear.

Go to your Theme Settings and add this to "Custom CSS":

html body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  margin-bottom: auto;
}

 

This will make your footer stick to the bottom of the page and is more flexible the fixing the grid.

If my post is helpful, consider liking it -- it will help others with similar problem to find a solution.
I can be reached via e-mail tairli@yahoo.com

GTLOfficial
Shopify Partner
831 171 188

Hello @gavboy555 
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

#shopify-section-template--19166707187947__image_banner_KLxJQd .banner__content.banner__content--middle-center {
margin-bottom: 0px !important;
}

result
86.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

GTLOfficial
Shopify Partner
831 171 188

This is an accepted solution.

Hello @gavboy555 
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

#shopify-section-template--19166707187947__image_banner_KLxJQd .banner__content.banner__content--middle-center {
margin-bottom: 0px !important;
}

result
86.png

Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh