New Shopify Certification now available: Liquid Storefronts for Theme Developers

Left Align Mobile View??

Solved
Launchcodegolf
Tourist
4 0 2

Desktop view is great, but on mobile, everything on my website is center aligned.  Titles, descriptions, etc.  I'm ok with this on my homepage, but all the other pages I need things to be left aligned.

 

Does anyone now how to do this?! Help! Lol.

 

My website: www.launchcodegolf.com

Accepted Solution (1)
Moeed
Shopify Partner
3051 761 925

This is an accepted solution.

Hey @Launchcodegolf 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.product-details.mobile {
    text-align: -webkit-left !important;
}
div#product-tab-description {
    text-align: -webkit-left !important;
}
</style>

RESULT:

Moeed_0-1700248453058.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Replies 4 (4)
Moeed
Shopify Partner
3051 761 925

This is an accepted solution.

Hey @Launchcodegolf 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.product-details.mobile {
    text-align: -webkit-left !important;
}
div#product-tab-description {
    text-align: -webkit-left !important;
}
</style>

RESULT:

Moeed_0-1700248453058.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
Launchcodegolf
Tourist
4 0 2

Thank you!

Moeed
Shopify Partner
3051 761 925

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.

Need a Shopify developer? Chat on WhatsApp


- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️
PageFly-Oliver
Navigator
491 95 89

Hi @Launchcodegolf ,

 

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of the file -> Save

 

{% unless template.name=='index' %}
<style>
@media(max-width:767px){
* {
    text-align: left !important;
}
}
</style>
{% endunless %}

 

 

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.