Solved

dawn theme - center align product information and product images

jecbon
Explorer
60 0 23

jecbon_0-1635760261876.png

Currently, the product information is not centered on the page. it is off to the left how do I make it center? other elements below the product information are perfect. Refer to screenshot for issue. 

 

Accepted Solutions (4)
Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Hii, @jecbon 
Paste this code on top of the section-main-product.css file.

@media screen and (min-width: 990px){
.product__info-wrapper.grid__item {
    margin-left: 18% !important;
}
}

Thank You.

View solution in original post

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

@jecbon 
Paste this code on top of the section-main-product.css file.

@media screen and (min-width: 990px){
.product.grid.grid--1-col.grid--2-col-tablet {
    margin-left: 25% !important;
}
}

Thank You.

View solution in original post

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Hii, @jecbon 
Paste this code on top of the base.css file.

@media screen and (min-width: 990px){
section#shopify-section-template--15308353667327__main {
    margin-top: 0px !important;
}
}

Thank You.

View solution in original post

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Paste this code on top of the base.css file.

@media screen and (min-width: 990px){
.product__info-wrapper.grid__item {
    position: relative !important;
    left: 18% !important;
}
.grid__item.product__media-wrapper {
    position: relative !important;
    left: 19% !important;
}
}



View solution in original post

Replies 20 (20)

dmwwebartisan
Shopify Partner
12289 2547 3698

@jecbon 

Please share your store URL!

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
jecbon
Explorer
60 0 23

Hi i cannot share url currently. it should just be CSS change should it not be ? 

dmwwebartisan
Shopify Partner
12289 2547 3698

@jecbon 

Please share preview URL!

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
jecbon
Explorer
60 0 23

Please share css change to center product information. 

jecbon
Explorer
60 0 23

or liquid change thank you.

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Hii, @jecbon 
Paste this code on top of the section-main-product.css file.

@media screen and (min-width: 990px){
.product__info-wrapper.grid__item {
    margin-left: 18% !important;
}
}

Thank You.

jecbon
Explorer
60 0 23

thank you sir, but can the product images move aswell ? there is now a gap between the product images and description. 

Zworthkey
Shopify Partner
5581 642 1567

@jecbon 
Remove the code which I have given you.

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

@jecbon 
Paste this code on top of the section-main-product.css file.

@media screen and (min-width: 990px){
.product.grid.grid--1-col.grid--2-col-tablet {
    margin-left: 25% !important;
}
}

Thank You.

jecbon
Explorer
60 0 23

ok, do i add another piece of code ?

 

Zworthkey
Shopify Partner
5581 642 1567

Remove the previous code and paste the new code.
Thank You.

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Hii, @jecbon 
Paste this code on top of the base.css file.

@media screen and (min-width: 990px){
section#shopify-section-template--15308353667327__main {
    margin-top: 0px !important;
}
}

Thank You.

jecbon
Explorer
60 0 23
@media screen and (min-width: 990px){
.product.grid.grid--1-col.grid--2-col-tablet {
    margin-left: 25% !important;
}
}

When implementing this code, it makes the image smaller.... i want the image and the text to remain the exact same size but just shift the product information and images to the middle...

Zworthkey
Shopify Partner
5581 642 1567

ok, remove the code.
I will give you a new code.
Thank You.

jecbon
Explorer
60 0 23

thank you. 

Zworthkey
Shopify Partner
5581 642 1567

This is an accepted solution.

Paste this code on top of the base.css file.

@media screen and (min-width: 990px){
.product__info-wrapper.grid__item {
    position: relative !important;
    left: 18% !important;
}
.grid__item.product__media-wrapper {
    position: relative !important;
    left: 19% !important;
}
}



jecbon
Explorer
60 0 23

Thank you Sir this is perfect

Zworthkey
Shopify Partner
5581 642 1567

Most Welcome.

mjdubarr
Pathfinder
109 0 29

@Zworthkey the code works on desktop but not for mobile. I noticed the footer header before the links, called "quick links", in mine, is not centered. How can I center this?

morethanaskirt
Tourist
4 0 0

I'd also like to know.

More Than a Skirt