Hi!
I need help with html coding.
My predecessor had been using the following code to show the images on our website.
4 images are shown in a row on PC but on mobile, the images are shown 1 by 1.
I want to change it so that 2 images are shown in a row on mobile.
SPRING SUMMER 2023
SPRING SUMMER 2023
XXXXXXXXXXXXX KNIT
XXXXXXXXXXXXX JACKET
XXXXXXXXXXXXX PANTS
1 / 10
CLOSE
URL: https://inscrire.jp/pages/collection-spring-summer-2023-man
Any help will be greatly appreciated!
Hi @Minako85
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the 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
Hope this can help you solve the issue
Best regards,
Noah | PageFly
You can do that by adding this CSS code at the bottom of your theme.scss.liquid file
@media screen and (max-width: 767px){
body.template-page .PageContainer .PageContent .page-contents.collection .look-list>li {
margin: 5px !important;
width: calc(50% - 10px) !important;
}
}
Moeed
August 17, 2023, 8:05am
4
Hey @Minako85
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Hi!
Thank you so much for your help!!
Your code has saved me so much time
Thank you for the support!
Thank you so much for the help!
Moeed
August 18, 2023, 4:24am
9
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
Hi Dan
Sorry to bother you again.
Would you please help me again regarding coding?
I want to show less margin on both sides for mobile.
I would really appreciate if you can advise on where and how to edit
Hi @Minako85
You can do it by updating code like this
@media screen and (max-width: 767px){
body.template-page .PageContainer .PageContent .page-contents.collection .look-list>li {
margin: 5px !important;
width: calc(50% - 10px) !important;
}
body.template-page .PageContainer main>.Container { padding: 0 20px !important; }
}