Shopify Development

Shopify Star Ratings: How to Master Product Review Placement on Collection Pages (Be Yours Theme & Beyond)

As a Shopify migration expert at Shopping Cart Mover, I spend a lot of time diving into the intricacies of e-commerce platforms. One of the most rewarding aspects is seeing how small, targeted adjustments can significantly enhance a store's user experience and conversion rates. The Shopify Community forums are a treasure trove of real-world challenges and ingenious solutions, often highlighting common pain points that many merchants face. Recently, I came across a discussion that perfectly encapsulates this: optimizing the display of product star ratings on collection pages.

The thread, initiated by LeanneJ12, was titled "Move Star Rating on Collection Page - Be Yours Theme." Leanne, like many store owners, understood the immense value of social proof provided by product reviews. Her goal was clear: to relocate the product star rating on her collection pages from its default position (often tucked away under the price) to a more prominent spot directly beneath the product title. This seemingly minor tweak can make a huge difference in how quickly customers perceive product quality and trustworthiness at a glance.

Shopify theme editor demonstrating CSS Flexbox for star rating placement.
Shopify theme editor demonstrating CSS Flexbox for star rating placement.

Why Star Rating Placement Matters on Collection Pages

In the fast-paced world of online shopping, every millisecond counts. When customers browse a collection page, they're quickly scanning for products that meet their criteria. Product star ratings act as powerful visual cues, instantly communicating social proof and building trust. Placing these stars strategically – ideally close to the product title – ensures they're seen immediately, influencing click-through rates and ultimately, purchases. For themes like the popular Be Yours, which is known for its clean design, optimizing these elements is crucial for maintaining a competitive edge.

Leanne's query sparked a valuable discussion, with community members offering various approaches to tackle this common customization challenge.

Initial Directions: Diving into Theme Files and App Manuals

The community quickly rallied to assist Leanne. Guleria and Dan-From-Ryviu both suggested exploring the theme's core files, specifically pointing towards the snippets/card-product.liquid file. This file is a common location for rendering individual product cards on collection pages, making it a logical place to adjust the order of elements like titles, prices, and ratings. Guleria also advised checking the specific review app's manual or contacting its support, as many review apps provide their own integration instructions or customization options.

While directly editing Liquid files offers granular control, it requires a good understanding of Shopify's theme architecture and Liquid syntax. For many merchants, a less intrusive approach is often preferred, especially for layout adjustments that can be handled with CSS.

The Power of CSS: Two Effective Solutions

This is where the discussion truly highlighted the versatility of web development. Two community members, tim_tairli and devcoders, provided elegant CSS-based solutions that could achieve Leanne's desired layout without directly altering the Liquid structure.

Method 1: Modifying base.css with Flexbox Ordering

Devcoders offered a comprehensive CSS snippet designed to be added to the theme's base.css file. This method leverages CSS Flexbox, a powerful layout module that allows for flexible arrangement of elements within a container.

Here's the breakdown of the suggested code:

.card-information__wrapper{
  display: flex;
  flex-direction: column;
}

.card-information__text{
  order: 1;
}

.rating{
  order: 2;
  margin-top: 4px;
}

.rating-text,
.rating-count{
  order: 3;
  margin-top: 0;
}

.price{
  order: 4;
  margin-top: 8px;
}
  • .card-information__wrapper: This is identified as the parent container holding the product title, rating, and price. By setting display: flex; and flex-direction: column;, we tell the browser to arrange its direct children in a vertical column.
  • order property: This is the magic of Flexbox here. It allows you to reorder flex items visually, regardless of their order in the HTML source. By assigning `order: 1` to the product title (.card-information__text), `order: 2` to the rating (.rating), and `order: 4` to the price (.price), we achieve the desired sequence: Title, Rating, Price.
  • margin-top: These properties are used for fine-tuning the vertical spacing between elements, ensuring a clean and readable layout.

To implement this, you would navigate to your Shopify Admin → Online Store → Themes. Click the three dots (...) next to your current theme, then "Edit code." In the Assets folder, find and open base.css (or a similar global CSS file like theme.css or global.css), scroll to the bottom, paste the code, and save. Always test on a duplicate theme first!

Method 2: Using Theme Settings Custom CSS

Tim_tairli provided an alternative, often simpler, method by utilizing the theme's built-in "Custom CSS" setting. This is a fantastic option for minor tweaks as it doesn't require direct file editing, making it safer and easier to manage for many merchants.

Here's tim_tairli's code:

.card-information__wrapper {
  display: flex;
  flex-flow: column nowrap;
}

/* move price to be the last item on product card */
.card-information__wrapper .price {
  order: 1;
}

/* optional -- for better look */
.card-information__wrapper .rating {
  margin-block: -0.5rem 0.5rem;
}

This snippet achieves a similar outcome using Flexbox. The key difference is the target for the price's order and the use of flex-flow: column nowrap; which is a shorthand for `flex-direction: column` and `flex-wrap: nowrap`. The `margin-block` property provides a modern way to control vertical margins, offering a cleaner look.

To apply this, go to your Shopify Admin → Online Store → Themes. Click "Customize" on your current theme. In the theme editor, look for the "Theme settings" (cog icon) → "Custom CSS" section. Paste the code there and save.

Best Practices for Shopify Theme Customization

Regardless of whether you're moving star ratings, adjusting product descriptions, or making more complex layout changes, always adhere to these best practices:

  • Backup Your Theme: Before making any code changes, always duplicate your live theme. This provides a safe rollback point if something goes wrong.
  • Test on a Duplicate Theme: Implement changes on the duplicated theme first. Preview it thoroughly to ensure everything works as expected across different devices and browsers before publishing.
  • Understand the Code: Don't just copy-paste. Take a moment to understand what each line of code does. This will empower you to troubleshoot and make future adjustments.
  • Prioritize CSS for Layout: For visual layout adjustments like reordering elements, CSS is often the most efficient and least intrusive method. Reserve Liquid file edits for structural or data-driven changes.
  • Consider App Settings: If the element you're trying to move is generated by an app, always check the app's settings first. Many apps offer built-in options for placement and styling.

Conclusion: Empowering Your Shopify Store

LeanneJ12's successful resolution of her star rating placement issue highlights a crucial aspect of e-commerce success: attention to detail. Optimizing the display of social proof elements like star ratings can significantly impact customer trust and conversion rates. Whether through direct Liquid file edits or clever CSS manipulation, Shopify provides the flexibility to tailor your store exactly to your needs.

At Shopping Cart Mover, we understand that a well-optimized store is key to a successful migration and sustained growth. By mastering these small but impactful customizations, you empower your Shopify store to perform at its best, providing an intuitive and trustworthy shopping experience for your customers.

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases