Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello-
I'm trying to remove a white space directly above the footer on a custom page template I created within the Prestige theme. I've seen many (most I believe) of the similar posts related to this issue, however none of the suggested code solutions have worked for me. To be clear, I'm only seeing this white space on a brand new page template I created myself....nowhere else.
Here's a screenshot:
Thanks for any assistance.
Solved! Go to the solution
This is an accepted solution.
Hi @Riig
You can try adding the above code to one of the JS files until it works, for example, the following files:
Please check if the path is the same as the one in the URL bar:
I hope that it will work for your site.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Hello @Riig
Can you give me your Store URL( with pass if your store password is enabled) so I can check it for you?
Kind & Best regards,
GemPages Support Team
Hi @Riig
You can go to Online store > Themes > Edit code. Then, find in the assets folder the JS files and paste the code below. Usually, the file is named global.js or theme.js, you can try in several files until the code snippet work:
if(window.location.pathname === '/pages/template-test-page') {
document.querySelector('.Footer.Footer--withMargin').className = 'Footer'
}
You can replace the path '/pages/template-test-page' with a link to a page with the same problem.
I hope that it will work for you.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
(Sorry reposting to correct place in thread)
Hi- that didn't seem to work. I added your code to the bottom of my theme.js file. Adding screenshots of code implementation and also our Asset files in case you think a different .js file would work. Thanks very much.
This is an accepted solution.
Hi @Riig
You can try adding the above code to one of the JS files until it works, for example, the following files:
Please check if the path is the same as the one in the URL bar:
I hope that it will work for your site.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
This worked when adding your suggested to code our libs.min.js file. Thanks very much!
Hi- that didn't seem to work. I added your code to the bottom of my theme.js file. Adding screenshots of code implementation and also our Asset files in case you think a different .js file would work. Thanks very much.
Hi @Riig
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
If our suggestions are useful, please let us know by giving it a like, marking it as a solution, or donating here ☕.
B2B Solution & Custom Pricing | Product Labels by BSS
Need help from our expert? Kindly share your request with us via community@bsscommerce.com
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025