Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

WooCommerce Star Ratings Not Rendering Properly

Hi guys,

I'm building an eCommerce site for a client, and on the products page the "star ratings" are not rendering properly and I can't for the life of me figure out why.

The stars are all showing as just a grey outline. Then imposed over the top of that for whatever the rating is, is the letter S in yellow. i.e. a product with a 4 star rating shows the letter S four times.

I'm only working with the WooCommerce demo products at this stage and thought it was maybe to do with only allowing reviews by verified owners, but I removed that and it still shows the same.

I can't seem to find any help online for similar issues so I'm hoping someone here has encountered the same thing.

Thanks in advance for any help/tips. Don :-)

As an aside, the star ratings work fine in the parent theme. It's my child theme which is having the issues

2 Answers

Figured it out.

I had set a font-family rule site-wide using *{font-family: }. This was overriding the .woocommerce.star-rating class

Changed my font-family rule to apply to body instead and voila!

Hi Don,

Do you have this on a site somewhere so I can take a look at it?

Hi Mark,

I have a site up, but the dummy products have been deleted as my client is overseas meeting with suppliers and they didn't want to show off their site with dummy products showing.

I can email you a link to my github repository if you like.