Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I'm trying to figure out how to make the footer stay fixed at the bottom of the page, regardless of how big the display is or how much you zoom out of the page. On the Dawn demo-store, you can zoom out indefinitely and the footer stays attached to the bottom, but this is unfortunately not the case for my site. Let me know if there is an accepted solution to this!
I've attached screenshots that show the Dawn demo-store and my store. You can see that the footer floats under the body content on my store, and is not fixed to the bottom of the page/screen.
Solved! Go to the solution
This is an accepted solution.
Ok do I did some digging and found something out. Apparently if I add an announcement bar to the top of my site, the footer stays attached to the bottom of the page. If I remove the announcement bar block from the top of my site, the footer does not stay attached to the bottom of the page. Why does this dependency exist? Good question. Hopefully someone from Shopify can shed some light on this.
Anyways my "solution" is to have an announcement block on top of the page that is hidden from view.
The footer is fixed at the bottom by default. You or someone else must have modified the theme code.
I don't think that's true - there's many posts about a similar issue here, although they seem to be for older versions. I even contacted Shopify support and they couldn't figure it out.
This is an accepted solution.
Ok do I did some digging and found something out. Apparently if I add an announcement bar to the top of my site, the footer stays attached to the bottom of the page. If I remove the announcement bar block from the top of my site, the footer does not stay attached to the bottom of the page. Why does this dependency exist? Good question. Hopefully someone from Shopify can shed some light on this.
Anyways my "solution" is to have an announcement block on top of the page that is hidden from view.
I have Craft theme and tried the "Announcement Bar" trick and it worked for me as well.
These are senseless frustrations with Shopify and such a waste of time trying to figure out, what should be, simple, common sense things.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024