---
title: "How to use custom CSS to style Klaviyo Reviews widgets"
description: "Learn about custom CSS for Klaviyo Reviews, including how to implement some basic use cases. For more advanced use cases, head to our developer resource on custom CSS for Klaviyo Reviews. Most widget customization can be implemented using drag and drop editors; CSS is only required for advanced use cases."
canonical_url: "https://help.klaviyo.com/hc/en-us/articles/22192640532507"
markdown_url: "https://help.klaviyo.com/hc/en-us/articles/22192640532507.md"
locale: "en-us"
category: "Reviews"
section: "Build and use reviews"
updated: "2026-10-29"
---

# How to use custom CSS to style Klaviyo Reviews widgets

## You will learn

Learn about custom CSS for Klaviyo Reviews, including how to implement some basic use cases. For more advanced use cases, head to our [developer resource on custom CSS for Klaviyo Reviews](https://developers.klaviyo.com/en/docs/klaviyo_reviews_css_class_reference). Most widget customization can be implemented using [drag and drop editors](https://help.klaviyo.com/hc/en-us/articles/16691401577883.md); CSS is only required for advanced use cases. 

**📝 Note:** Implementing custom CSS for your reviews widgets involves editing your site’s code. This is only recommended for technically savvy marketers or those who have access to a developer. While our product does support custom CSS, our support team cannot help you customize your widgets beyond the general guidance covered in this documentation. To maintain the security of your data, Klaviyo's support team is not able to open your HTML files.

## About custom CSS for Klaviyo Reviews 

Klaviyo Reviews provides a wide range of CSS class selectors, which can be used to write custom CSS and apply advanced styling options to your reviews widgets. For more information, head to our [complete dictionary of Klaviyo Reviews CSS classes](https://developers.klaviyo.com/en/docs/klaviyo_reviews_css_class_reference). 

## How to apply custom CSS 

You can apply custom CSS to Klaviyo Reviews in the same manner you’d apply any other custom CSS: 

- Add custom CSS to your site’s main CSS stylesheet.

- Insert <style> tags within a single page’s code to apply CSS to that page.

- Apply inline styles to an individual HTML element using its style attribute. Inline styles do not apply the selector-based CSS snippets below to the widget’s contents.

- Use your ecommerce platform’s custom CSS editor. See the Shopify and WooCommerce guidance below.



We’ll focus on the last option here, because it is the simplest to implement. 

Note that Klaviyo Reviews, including the default styles, generally load after CSS from your ecommerce platform. This means it’s important to use precise selectors, so your custom CSS isn’t overwritten by the defaults. 

### Apply custom CSS for Shopify

It’s not recommended to make edits to your current theme while it is live, as these edits may appear to site visitors before you can review the changes and troubleshoot any issues. 

1. Create an unpublished copy of your current theme using [Shopify’s instructions for duplicating themes](https://help.shopify.com/en/manual/online-store/themes/managing-themes/duplicating-themes).



![duplicate your theme](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/fde20fa2e34e130932d3b79bd473fce1e13e1171-1600x662.jpg?auto=format)

2. Open the copied theme for editing and follow [Shopify’s instructions for adding theme-wide custom CSS](https://help.shopify.com/en/manual/online-store/themes/customizing-themes/edit-code/add-css).



![theme settings button](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/508c77643c29fb31b9c787484dc15d48f886217a-526x388.jpg?auto=format)

![custom css field](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/0f864f13899eb98463ca4a51b47ee9b7e742de98-702x1286.jpg?auto=format)

3. Add your custom CSS. Shopify’s theme-wide **Custom CSS** field has a 1,500-character limit. If your CSS exceeds that limit, use a stylesheet in your theme instead.



**📝 Note:** Sample CSS snippets are available in the section below to copy.

1. Preview a page where your reviews widgets appear, such as a product page, and review the changes.

2. Save your changes. When you’re ready to make them live, follow [Shopify’s instructions for publishing the copied theme](https://help.shopify.com/en/manual/online-store/themes/managing-themes/publishing-themes), including the publish confirmation.



### Add custom CSS for WooCommerce

To apply CSS only to a specific WordPress page, prefix the widget selector with `.page-id-YOUR_PAGE_ID`, replacing the placeholder with your page’s ID. Learn how to [find a page ID](https://wordpress.com/support/pages/#find-the-page-id). For other page types, such as individual products, inspect the page’s body classes to choose the correct selector. Omit the page selector to apply the styles wherever the matching widget appears.

1. Open your site’s custom CSS editor. For a block theme on WordPress 6.2 or later, follow [WordPress’s site-wide custom CSS instructions](https://wordpress.org/documentation/article/styles-overview/#applying-custom-css). For a classic theme, use [Additional CSS in the WordPress Customizer](https://wordpress.org/documentation/article/customizer/#additional-css).



![The Styles option](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/bc71583c7d7deecc38bb71a386b58fcba26723a2-704x790.png?auto=format)

![The Additional CSS option](https://cdn.sanity.io/images/6ct6b26e/help-center-prod/bc58183bca62344cc7b9a22dbacd80dad2f298e1-542x452.png?auto=format)

2. Add your custom CSS.




**📝 Note:** Sample CSS snippets are available in the section below to copy.

1. Preview the changes on a page with reviews widgets, then save them using the instructions for your editor. The Site Editor uses **Save**; the Customizer uses **Publish**.



## Custom CSS use cases 

The CSS snippets below target the product reviews widget, including its review summary and review list. They do not change the standalone star rating, featured review carousel, or SEO / All reviews widgets. More advanced customization requires developer support. If you don't have a developer on your team and are not comfortable writing code yourself, consider reaching out to a [Klaviyo Partner](https://connect.klaviyo.com/) for assistance.

**▸ Rating icon (star) appearance**

Replace the URLs below with image URLs representing your preferred full star, partial star, and empty star, respectively. When using Shopify’s **Custom CSS** field, image URLs must use `https://cdn.shopify.com`.

```text

#klaviyo-product-reviews-wrapper {
  .kl_reviews__star,
  .kl_reviews__circle {
    display: none;
  }
  .kl_reviews__full_star {
    background-image: url("https://cdn.shopify.com/s/files/1/0284/3128/6351/files/full-moon.png?v=1705073898"); 
    background-size: cover;
  }
  .kl_reviews__partial_star {
    background-image: url("https://cdn.shopify.com/s/files/1/0284/3128/6351/files/last-quarter-moon.png?v=1705073898");
    background-size: cover;
  }
  .kl_reviews__empty_star {
    background-image: url("https://cdn.shopify.com/s/files/1/0284/3128/6351/files/new-moon.png?v=1705073898");
    background-size: cover; 
  }
}

```

**▸ Image thumbnail size**

Set customer-submitted image and video thumbnails, including their containers, to 225px square in your review list.

`#klaviyo-product-reviews-wrapper { --kl-reviews-reviews-review-images-size: 225px; }`

**▸ Button colors and styles**

These examples assume both buttons are visible. **Ask a question** is the first button, and **Write a review** is the second. If only 1 button is visible, use `:nth-child(1)` to style that button. The selectors are limited to the action buttons so they do not affect other buttons in the widget.

Apply styles to just the **Write a review** button.

```text
#klaviyo-product-reviews-wrapper .kl_reviews__button_bar > .kl_reviews__button:nth-child(2) {
   color: blue;
   box-shadow: 0 0 15px #9ecaed;
}  
```

Apply styles to just the **Ask a question** button.

```text
#klaviyo-product-reviews-wrapper .kl_reviews__button_bar > .kl_reviews__button:nth-child(1) {
   color: blue;
   box-shadow: 0 0 15px #9ecaed;
}
```

## Additional resources

- [How to customize review widgets](https://help.klaviyo.com/hc/en-us/articles/16691401577883.md)
  Learn how to customize the appearance of your review widgets (e.g., the blocks on your store that display and accept product reviews). 
- [How to customize the review submission page](https://help.klaviyo.com/hc/en-us/articles/19481466872859.md)
  Learn about customization options for the reviews submission page, including how to let reviewers choose an AI-generated headline for their review. 
- [Klaviyo Reviews CSS class reference (developer resource)](https://developers.klaviyo.com/en/docs/klaviyo_reviews_css_class_reference)
