Shopify themes, liquid, logos, and UX
I want to use a single gif or image files as the background to my store and my current code which is in a screenshot below is causing there to be multiple of the same images rather than just one. Is there a way to fix this?
Its a test store so there's a whole lot wrong with it but the link is https://garmentgarage.myshopify.com/
Hi @GarmentGarage ,
This is Kate from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/base.css->paste below code at the bottom of the file:
body {
background-size: cover !important;
}
Hope my answer will help you.
Kate from PageFly Team
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Unlock the secrets to a record-breaking BFCM with PageFly and Canva
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
➜ Weekly updated Shopify tutorials on YouTube
All features are available from the Free plan. Live Chat Support is available 24/7.
@GarmentGarage You set the background image as background property, not background-image on body element. I think you tried to use background property due by gradient class. so next background-repeat: no-repeat doesn't work! If you update your body's background like below code, it will work.
body {
background: url(https://cdn.shopify.com/s/files/1/0638/9497/8819/t/3/assets/ezgif.com-video-to-gif.gif?v=1677014630) center / cover no-repeat !important;
}
It works great! Thank you so much, however now theres some white bars appearing throughout the screen, any clue on how to combat those?
and is there any way I can stretch the image to the footer?
Thank you so much
Because for the white borders, there are some border properties on some elements.
For example, in announcement-bar
To fix this issue, remove this property border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.08) on base.css
this is the issue im talking about do you see the white gap between the footer and the header?
Lol, I'm on storefront password page. I can't see that page on my end. Looks like it's development store and need to access with password input. also I couldn't see the password input field. no ways to check other pages
Could i give you access to my store?
Hello @GarmentGarage ,
You can follow these steps:
1. Go to Online Store->Theme->Edit code
2. Open your theme.liquid file, paste the below code before </body>
<style>
@media (min-width: 750px ) {
.section-footer-padding {
padding-top: 48px;
padding-bottom: 36px;
background: none !important;
}
}
</style>
I hope the above is useful to you.
Kind & Best regards,
GemPages Support Team
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024