Re: URGENT CSS PROBLEM PAGE WIDTH NOT 100%

Why isn't my website page width at 100% on mobile?

vseazon
Shopify Partner
46 0 10

Hello,

 

My website page with is not at 100% on mobile it's not full screen how can I do ? 

 

website: https://479a7a-a6.myshopify.com/products/ambienza

 

Image explaining: 

vseazon_2-1711699248443.png

 

 

 

 

 

 

Replies 6 (6)

Dan-From-Ryviu
Shopify Partner
12018 2348 2528

Hi @vseazon 

This is the function of product image slider. Please add this code to the bottom of section-main-product.css file to make it full-width

@media(max-width: 749px) {
.slider.slider--mobile {
    scroll-padding-left: 0 !important;
}
.product__media-list .product__media-item {
    width: 100% !important;
}
}

 

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

vseazon
Shopify Partner
46 0 10

it's not working 

vseazon
Shopify Partner
46 0 10

it's not working the first 1 seconde yes and after no you can check on your phone

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Hi @vseazon 

Seems like you add some codes that give the result on that one. Youll notice the changes only on the screen size 576px. And the worst thing is there is 2 of them that same over ride codes just repeating. Is this code. 

Made4uoRibe_0-1711714188063.png

Im not sure where is this located looks like in the theme.liquid or the product.liquid its named ambienza file. 

 

 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
vseazon
Shopify Partner
46 0 10

Even when I deleted those lines it stays the same 😞

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Check this one then:

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media screen and (max-width: 749px){
.slider.slider--mobile { 
    gap: 20px;
}
}

 

And Save. 

Result:

Made4uoRibe_0-1711717037027.png

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.