We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Star Ratings Above Product Titles Across All Screen Sizes (Dawn)

Star Ratings Above Product Titles Across All Screen Sizes (Dawn)

manbru
Pathfinder
129 0 30

Hello,

 

I've used this code to try and position the star ratings in product cards above the title but it looks different on almost every screen. So i was wondering how to without any padding/marginal/position place the star rating above the product title in product cards.

 

The code i've tried with:

 

<style>
  .collection-icon-list.vstar-star {
    top: -110px !important;
    position: relative !important;
    margin-top: 0px;
  }

  .card__heading {
    margin-top: 0px;
  }
</style>

 

 

My store and I removed the code above from the theme.liquid file so it has the default position of the rating right now: https://r1vex.myshopify.com/ 

 

 

Example of how i want it to look on any screen size:

Skärmavbild 2024-09-07 kl. 11.36.19.png

Thanks for helping!

Replies 4 (4)

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @manbru

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

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

<style>
@media only screen and (min-width: 500px) {
.collection .collection-icon-list.vstar-star {
    top: -68px !important;
}
}
</style>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

manbru
Pathfinder
129 0 30

Thanks for your reply, but this doesn't position the star rating above the product title:

 

Skärmavbild 2024-09-07 kl. 12.12.05.png

BSSCommerce-HDL
Shopify Partner
2305 835 907

Hi @manbru, Pls replace old code to this new code: 

<style>
@media only screen and (min-width: 500px) {
    .collection .collection-icon-list.vstar-star {
        top: -68px !important;
        position: relative !important;
    }
}
</style>

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you 😍

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Rahul_dhiman
Shopify Partner
856 168 186

Hello @manbru 

Go to online store ----> themes ----> actions ----> edit code---->base.css
add this code at the end of the file.

.collection-icon-list.vstar-star {
top: -65px !important;
}

result
3.png2.png

If this was helpful, hit the like button and accept the solution.
Thanks

Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront

Contact here


BEST CUSTOMER ACCOUNTS APP WITH CUSTOM WISHLIST OPTION 
TRY OUR APP :

PWC: Customer Accounts & Pages