DAWN THEME: MOBILE 2-COLUMN FORMAT

Solved

DAWN THEME: MOBILE 2-COLUMN FORMAT

skymochi
Excursionist
45 0 5

Hi, i am trying to re-format my shop page from 1 column to 2.

However, I am struggling with the ratio as I'd like to squeeze 4 products when landing on the page.

My site is koredoko.com

and my end goal is like coucouintimates.com

D
oes anyone also know how to keep my product info always present, the product name and price only appear on hover,

 

Screenshot 2024-07-29 at 2.22.53 AM.pngIMG_B83F4112918F-1.jpeg

 

 

Accepted Solutions (3)

niraj_patel
Shopify Partner
2378 514 511

This is an accepted solution.

Hello @skymochi 

 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px){
  #shopify-section-template--15425262780489__product-grid .grid--1-col-tablet-down .grid__item{
     width: 100%;
     max-width: 50% !important;
  } 
}
</style>

techlyser_web_0-1722245807249.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

ZestardTech
Shopify Partner
5731 1050 1386

This is an accepted solution.

Hi @skymochi 

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

@media (max-width: 768px){
#product-grid .grid__item {
width: 100%;
max-width: 50% !important;
border: solid 1px #000;
}
}

 

ZestardTech_0-1722248689170.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing

View solution in original post

niraj_patel
Shopify Partner
2378 514 511

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px) {
#shopify-section-template--15425262780489__product-grid .grid--1-col-tablet-down .grid__item {
aspect-ratio: 4 / 5;
}
}
</style>

niraj_patel_0-1722412190945.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Please Mark it my both solution  as Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 6 (6)

niraj_patel
Shopify Partner
2378 514 511

This is an accepted solution.

Hello @skymochi 

 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px){
  #shopify-section-template--15425262780489__product-grid .grid--1-col-tablet-down .grid__item{
     width: 100%;
     max-width: 50% !important;
  } 
}
</style>

techlyser_web_0-1722245807249.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com
skymochi
Excursionist
45 0 5

Hi Niraj,


Thanks! This worked, do you know how to shorten each grid so that image is fully visible and ratio is closer to 4:5?IMG_6253.jpg

niraj_patel
Shopify Partner
2378 514 511

This is an accepted solution.

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
@media screen and (max-width: 767px) {
#shopify-section-template--15425262780489__product-grid .grid--1-col-tablet-down .grid__item {
aspect-ratio: 4 / 5;
}
}
</style>

niraj_patel_0-1722412190945.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Please Mark it my both solution  as Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

Made4uo-Ribe
Shopify Partner
7807 1888 2316

Hi @skymochi 

Check this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

<style>
@media screen and (min-width: 990px) {
.section-template--15425262780489__product-grid-padding .grid--3-col-desktop .grid__item {
    width: calc(25% - var(--grid-desktop-horizontal-spacing) * 2 / 4);
    max-width: calc(100vw / 4);
  }
}
@media screen and (max-width: 989px) {
.section-template--15425262780489__product-grid-padding .grid--3-col-desktop .grid__item {
    width: calc(50% - var(--grid-desktop-horizontal-spacing) * 2 / 3);
    max-width: calc(100vw / 2);
  }
}
</style>

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1722246461844.png

    Mobile 

  • Made4uoRibe_1-1722246480395.png

    Desktop.

  • Note: tihs only work on the homepage collection. 

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

ZestardTech
Shopify Partner
5731 1050 1386

This is an accepted solution.

Hi @skymochi 

 

1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > base.css and paste this at the bottom of the file:

 

@media (max-width: 768px){
#product-grid .grid__item {
width: 100%;
max-width: 50% !important;
border: solid 1px #000;
}
}

 

ZestardTech_0-1722248689170.png

 

Want to modify or develop new app, Hire us.
If helpful then please Like and Accept Solution .
Email: support@zestard.com
Shopify Apps URL :- https://apps.shopify.com/partners/zestard-technologies
Custom Modifications Into Shopify Theme | Shopify Private App | SEO & Digital Marketing
skymochi
Excursionist
45 0 5

Hi!

Thanks! This worked, do you know how to shorten each grid so that image is fully visible and ratio is closer to 4:5?IMG_6253.jpg