Does anyone know how l can left align my product review stars on my product pages on mobile view? They are currently centre aligned - see below. I am using prestige theme.
1 Like
can you share a link please to your product page
Hi @abhicadisoft ,
- Go to Online Store → Theme → Edit code.
- Open your theme.css / based.css / theme.css.liquid file and paste the code in the bottom of the file.
@media (max-width: 768px){
.product-info__block-item {
text-align: left !important;
}
}
Go to your online store → edit code → theme.css file and paste this code in the end of file
div#shopify-block-ARzBOaU1hV3Y4MEwxM__tydal_reviews_star_rating_FNhbLK {
display: grid !important;
}
Hi @houseof9
Try this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 600px) {
.product-info__block-item div#shopify-block-ARzBOaU1hV3Y4MEwxM__tydal_reviews_star_rating_FNhbLK {
text-align: left !important;
}
}
- And Save.
- Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Thank you!
Hello @houseof9,
Regarding your requirement to left-align your product review stars on your product pages on mobile view, you can follow the given process:
1.Navigate Online Store > Themes > Click “Customize” on your prestige theme.
2.Click on “Edit code.”
3.In the Assets folder, look for a file like theme.css, base.css, or styles.css. Open it.
4.Add this given CSS code to the bottom.
@media screen and (max-width: 749px) {
.product-info__block-item div#shopify-block-ARzBOaU1hV3Y4MEwx {
text-align: left ! important;
justify-content: flex-start ! important;
}
}
5. Save changes.