Shopify themes, liquid, logos, and UX
Hello,
My site is Beautiful by Storm; I would like to make my 'Image banner' not completely go from side to side. Instead, I want a consistent margin down my website. Here is a photo, so you understand what I'm asking for it to look like.
Thanks for any help you might be able to provide!
Solved! Go to the solution
This is an accepted solution.
Add the following as a custom liquid or custom html section/block to add bleed to all image banner sections for desktop users
<style type="text/css">
@media screen and (min-width: 990px) {
section[id$="__image_banner"] {
max-width: var(--page-width);
padding: 0 5rem;
text-align: center;
margin: 0 auto;
}
}
</style>
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
yes please confirm this look
Yes, that look would be perfect.
This is an accepted solution.
Add the following as a custom liquid or custom html section/block to add bleed to all image banner sections for desktop users
<style type="text/css">
@media screen and (min-width: 990px) {
section[id$="__image_banner"] {
max-width: var(--page-width);
padding: 0 5rem;
text-align: center;
margin: 0 auto;
}
}
</style>
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Thanks, this worked perfect for me. I placed it in the bottom of 'image-banner.liquid'.
If I need to adjust the width of another banner, but I don't want the top banner to be affected, what do I want to do
I've tried placing this at the very bottom of 'image-banner.liquid' but it's not working for me. I previously changed some other code to allow the entire banner to be clickable, and I'm wondering if that's messing it up somehow? I followed this tutorial for that Dawn theme: how to make the image banner clickable (ezfycode.com)
Is it still possible for me to make the banner width smaller? I'm wanting it to stay at the same ratio, just not go all the way across the page because it looks absolutely HUGE on a desktop.
Thanks!
Hi! This worked great, but it's working only on one image banner, others are full width. Do you have any suggestions on how it can apply to all image banners? Thanks!
I have this same issue. It worked perfectly on the top image banner, but not the image banners below.
By 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, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024