How can I center my home page image on mobile using the Dawn theme?

Solved

How can I center my home page image on mobile using the Dawn theme?

User1300
Tourist
9 0 2

Using the Dawn theme, how can I center the home page image so that the "Going Out Of Business Sale' is centered on mobile? I like how it looks on a desktop but I want it to be centered on mobile. 

 

https://shopshut-3517.myshopify.com/

 

Password: mojo

 

Screen Shot 2023-03-06 at 22.41.49.pngScreen Shot 2023-03-06 at 22.41.30.png

Accepted Solution (1)

PageFly-Victor
Shopify Partner
7865 1786 3131

This is an accepted solution.

Hi @User1300 

 

You can try this code by following these steps:

Go to Online store => themes => actions => edit code  and add this code on file theme.liquid before tag </body>

PageFlyVictor_0-1678164883463.png

 

PageFlyVictor_1-1678164883106.png

 

<style>
@media screen and (max-width: 767px){
.media>img{
   object-position: right center !important;
}
}
</style>

 

Hope this answer helps.

Best regards,

Victor | PageFly

View solution in original post

Reply 1 (1)

PageFly-Victor
Shopify Partner
7865 1786 3131

This is an accepted solution.

Hi @User1300 

 

You can try this code by following these steps:

Go to Online store => themes => actions => edit code  and add this code on file theme.liquid before tag </body>

PageFlyVictor_0-1678164883463.png

 

PageFlyVictor_1-1678164883106.png

 

<style>
@media screen and (max-width: 767px){
.media>img{
   object-position: right center !important;
}
}
</style>

 

Hope this answer helps.

Best regards,

Victor | PageFly