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

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

manbru
Pathfinder
112 0 31

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 848 1062

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
112 0 31

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 848 1062

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
558 112 110

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

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me [email protected] - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167