Shopify themes, liquid, logos, and UX
For some reason, the smallest image size on Image banner in any Pages are very big, I wanted all the banners to have standard banner size.
This is how the smallest banner size looks like:
Hello @arutze ,
You can try to follow these steps:
Go to Online Store -> Themes -> Actions -> Edit code
Go to Sections -> page-template.liquid
Add a CSS class or ID to the image element within the code. For example:
{% if page.image_banner %}
<div class="image-banner">
<img src="{{ page.image_banner | img_url: 'master' }}" alt="{{ page.title }}">
</div>
{% endif %}
Go to Assets folder -> base.css file -> add this following code at the bottom of page
.image-banner img {
max-width: 100%;
height: auto;
}
Save and preview
Hope this can help.
Transcy
Hi @Transcy , I don't have the page-template.liquid section 😞
and can you confirm that it will not affect the image banner size on the main page?
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey 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, 2024