Shopify Product Review Text Alignment issue on mobile view

Solved

Shopify Product Review Text Alignment issue on mobile view

EcoStaples
Tourist
8 0 3

Hello, I recently asked shopify for help in centring a line of text created on my product pages via the Shopify Product Review App. They were unable to assist me in resolving, much appreciate any instructions you can provide.

 

Problem:

The line " From 2 Reviews   [Write a review Here]" is not centred on mobile view (shows correct on PC view)

 

Example URL:

Men's Bamboo Vee Neck T shirt | Sustainable Tees | Eco Staples

 

Images:

I have included 2 images to further illustrate the issue. The PC screenshot is showing the line correctly spaced & centred, while the Mobile image clearly shows the text bunched up and to the left. 

 

Looking forward to hearing back soon

Thanks,

Warren

Eco Staples

 

When viewed on mobileWhen viewed on mobileWhen viewed on PC, shows correctly.When viewed on PC, shows correctly.

Simplicity meets Sustainability
Accepted Solutions (2)

binal_identix
Shopify Partner
681 60 119

This is an accepted solution.

Hello @EcoStaples!

Hope you are doing well.

Please add the below CSS in the theme.css file at the bottom:

@media only screen and (max-width: 480px){
.product-single__meta .rte {
    text-align: center !important;
}
.spr-summary-actions-newreview {
    float: right !important;
}
}

Hope this will help you out.

iCart Cart Drawer Cart Upsell App


- If you find the solution helpful, please accept and like it
- To learn more visit www.identixweb.com

View solution in original post

binal_identix
Shopify Partner
681 60 119

This is an accepted solution.

Hello @EcoStaples!

Yes, please remove the below line of code from the code given by me to make it work as you required:

.spr-summary-actions-newreview {
    float: right!important;
}

iCart Cart Drawer Cart Upsell App


- If you find the solution helpful, please accept and like it
- To learn more visit www.identixweb.com

View solution in original post

Replies 5 (5)

ZestardTech
Shopify Partner
6096 1091 1464

Hello There,

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

.product-single__meta .rte {
text-align: center;
}
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
EcoStaples
Tourist
8 0 3

Hi ZestardTech,

 

Many Thanks for your response and solution to my issue. I implemented your code and it indeed centred that line of text. Is there any way to put a few spaces in between so it looks like this "From 2 reviews          [Write a Review here]"

 

Much appreciate your expert advice.

Regards,

Eco Staples

Simplicity meets Sustainability

binal_identix
Shopify Partner
681 60 119

This is an accepted solution.

Hello @EcoStaples!

Hope you are doing well.

Please add the below CSS in the theme.css file at the bottom:

@media only screen and (max-width: 480px){
.product-single__meta .rte {
    text-align: center !important;
}
.spr-summary-actions-newreview {
    float: right !important;
}
}

Hope this will help you out.

iCart Cart Drawer Cart Upsell App


- If you find the solution helpful, please accept and like it
- To learn more visit www.identixweb.com
EcoStaples
Tourist
8 0 3

Many Thanks @binal_identix 

 

Your solution works great. It's has better spaced the line text and looks a lot better. If I wanted to push the "From 2 reviews" text to align left, is there any way to do that? 

 

Warm Regards,

Eco Staples

Simplicity meets Sustainability
binal_identix
Shopify Partner
681 60 119

This is an accepted solution.

Hello @EcoStaples!

Yes, please remove the below line of code from the code given by me to make it work as you required:

.spr-summary-actions-newreview {
    float: right!important;
}

iCart Cart Drawer Cart Upsell App


- If you find the solution helpful, please accept and like it
- To learn more visit www.identixweb.com