We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Re: Mobile responsive image bar on alternate page template

Mobile responsive image bar on alternate page template

JKP84
Shopify Partner
35 0 14

Hello - i've created a new page template and added 2 image bar elements to it.

I am struggling to get the images within them to fit properly - they are banners, and they won't fit right on desktop and are not responsive on mobile or ipad. I have attempted to fix this but cannot get them working properly on both.

 

can anyone assist me please? it is the top 2 banners on this page (after the menu section)

 

https://www.dinkyartist.com/pages/fundraising 

 

Replies 5 (5)

oscprofessional
Shopify Partner
16407 2444 3196

@JKP84 ,

 

@media only screen and (max-width: 768px){
.image-bar__item.image-bar__item--3a0d4e5f-3944-47a0-b78e-d45e8dc50af8.box.ratio-container.lazyloaded {
    background-size: 100%;
}
.image-bar__item.image-bar__item--56bc8672-216c-40cf-a2e8-68ff1acf730f.box.ratio-container.lazyloaded {
    background-size: 100%;
}
.image-bar{
    max-width: 100%;
}
}

 

Add this css at the bottom of Online Store->Theme->Edit code->Assets->theme.scss.liquid

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
JKP84
Shopify Partner
35 0 14

@oscprofessional Thanks for your suggestion - it hasn't really worked, on mobile view it now has a huge area of white space above and below. and the top banner is still partly cut off in height on desktop view?

oscprofessional
Shopify Partner
16407 2444 3196

@JKP84 ,

 

@media only screen and (max-width: 768px){ .image-bar__item.image-bar__item--3a0d4e5f-3944-47a0-b78e-d45e8dc50af8.box.ratio-container.lazyloaded { background-size: 100%; } .image-bar__item.image-bar__item--56bc8672-216c-40cf-a2e8-68ff1acf730f.box.ratio-container.lazyloaded { background-size: 100%; } .image-bar{ max-width: 100%; }.image-bar--small .image-bar__content, .image-bar--small .image-bar__item {
height: auto;}div#shopify-section-alternate2 {padding: 0;}div#shopify-section-image-bar2 {
padding-bottom: 0;} }

Please the code with this code.

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...
JKP84
Shopify Partner
35 0 14

@oscprofessional i'm afraid it is still cutting off part of the height on desktop and not working correctly on mobile. I'd like the banners to be above one and another, there is too much space.

oscprofessional
Shopify Partner
16407 2444 3196

@JKP84 ,

 

Check the video attached

 

Hire us | Pass Core Web Vital | B2B Wholesale Experts | Claim Your Free Website Review |
Connect with Us: WhatsApp | Skype: oscprofessionals-87 | Email: pallavi@oscprofessionals.com |
Custom Shopify SolutionsPrivate Apps, Theme Customization & SEO | Digital Marketing |
OSCP Apps: Discount Suite | Wholesale App | Bundle & Upsell | Shipping Discount | and more...