A user seeks help aligning review stars horizontally with the product price on their Shopify store’s product pages (Palo Alto theme). The original layout shows stars positioned below the price.
Solutions Offered:
One respondent offers to implement custom code directly via store collaboration access
Dan from Ryviu provides CSS code using media queries and float properties to reposition the review badge element
Parampreet suggests alternative CSS targeting specific product block classes with float and width adjustments
Outcome:
The issue is resolved. After initial confusion about CSS placement, the original poster successfully implements Dan’s solution by adding the code to the correct settings section. Parampreet’s approach caused unintended layout shifts with elements moving to the right side.
The working solution uses CSS floats and negative margins to position the review stars inline with pricing on desktop viewports (750px+).
Summarized with AI on October 23.
AI used: claude-sonnet-4-5-20250929.
Happy Wednesday. I’m redesigning the product pages on our website to be neater and was hoping someone could assist me to get the review stars in line with the product price.
Thanks so much for taking the time to help. Unfortunately putting this code into the ‘Custom CSS’ section on the front theme editor didn’t work. Do you know where I need to put this?