Shopify themes, liquid, logos, and UX
Hello there 🙂
I would like to change the collection hero banner.
1) Swap the elements, so that the image is on the left, and the text is on the right (the default is the contrary order).
2) Fix the size of the image. I will only be uploading instagram posts which are a ratio of 1080*1080 (1:1 ratio). I would like the image to always keep this ratio for the image so that we can always see the full image.
This is the store link: https://384f77-3.myshopify.com/collections/thewilsonsvintage
Pw: mewnaw
Hi @AnaELW
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
div#shopify-section-template--19849623863624__banner .collection-hero__inner {
display: flex;
flex-direction: row-reverse;
}
.collection-hero--with-image .collection-hero__text-wrapper {
padding-left: 4rem;
}
</style>
About the image, if you don't want the image to be stretched like this, you can make sure that you will use future image that has the big size
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Cool! This almost works. The only thing missing:
- on mobile, the image dissapears.
- would it be possible to add a bit of padding between the picture and text? on my screen there's no padding.
Thank you!!
Hi @AnaELW
You can replace the code above with this one:
<style>
@media screen and (min-width: 767px){
div#shopify-section-template--19849623863624__banner .collection-hero__inner {
display: flex;
flex-direction: row-reverse;
}
.collection-hero--with-image .collection-hero__text-wrapper {
padding-left: 4rem;
}
}
</style>
To increase the padding between text and image, you can increase the value '4em' to higher
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
User | RANK |
---|---|
198 | |
171 | |
61 | |
52 | |
47 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023