Shopify themes, liquid, logos, and UX
Hi there! Hoping someone can help me with what code I need to edit my footer in mobile only. I have a background image that is overlapping with my company information and footer menu. I'm thinking the easiest thing would be to just justify these two elements to the left or right (but totally open to other suggestions). I've tried various options, but either the background image sizing changes and doesn't look right or the code just doesn't work. Posting a picture in to show what I'm talking about with the overlap.
Solved! Go to the solution
This is an accepted solution.
What changed on the mobile view? @sarstar923
Try this and see
<style>
@media only screen and (max-width: 989px) {
.footer--blocks {
flex-wrap: nowrap !important;
}
.layout--viewport {
min-height: auto !important;
}
}
</style>
Would this work @sarstar923?
If you are ok with that then,
Go to your theme's "Edit Code" Option, then in the search bar type "theme.liquid"
Below the tag "<head>" tag paste the following. Screenshot attached for reference.
<style>
@media only screen and (min-width: 989px) {
.footer--blocks {
flex-wrap: nowrap !important;
}
.layout--viewport {
min-height: auto !important;
}
}
</style>
Screenshot is for reference only, the correct code to paste is the one shown above.
I'd love for it to look like that, but unfortunately that code did not work for me!
Actually, I did get it to work I believe but it changed the entire format on mobile view. I'd love for it to look like that but only want to footer to be edited.
This is an accepted solution.
What changed on the mobile view? @sarstar923
Try this and see
<style>
@media only screen and (max-width: 989px) {
.footer--blocks {
flex-wrap: nowrap !important;
}
.layout--viewport {
min-height: auto !important;
}
}
</style>
Just put it back in and it didn't do the same thing as it did before with the mobile view - so that is perfect! Thank you so much!!
Oh that's great! Your site made me hungry haha 😆
Oh my goodness they are seriously the best pretzels!!
Hi @sarstar923
Would you mind to share your store URL? Thanks!
queencitycrunch.com
Shopify 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, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025