> For the complete documentation index, see [llms.txt](https://docs.roadmap.so/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roadmap.so/reviews/storefront-and-display/edit-your-pdp-review-block.md).

# Edit your PDP review block

Configure the reviews block on your product pages: the review list, the text around it, questions, styling and the block layout.

The PDP block is the reviews section on your product page: the rating summary, the review list, the filters and the questions. You edit it in the review widget editor, with **PDP Block** selected in the widget dropdown.

For the editor itself, the preview and how saving works, see [Customise review widget design](https://docs.roadmap.so/reviews/storefront-and-display/customise-review-widget-design.md).

<figure><img src="https://393112916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ8asLD4FVCFagK40xEr4%2Fuploads%2FpYE9D16yLaMRgrLGHFzO%2FScreenshot%202026-10-20%20at%2012.22.06%E2%80%AFPM.png?alt=media&amp;token=d7a18463-e5b7-403a-8987-ced301bf4fad" alt=""><figcaption></figcaption></figure>

### Review Block Settings

This group controls how the review list behaves and every piece of text around it.

**How the list behaves**

* **Reviews per page (desktop)** and **Reviews per page (mobile)**. Leave mobile blank to use the desktop figure.
* **Reviews per line**, for a grid rather than a single column.
* **Scroll back to top on page change**, which returns the shopper to the top of the list when they click Next or Previous.
* **Show more button after N words**, which truncates long reviews behind a Show more link. Leave it blank to show every review in full.

**How reviews read**

* **Review date format**, which also applies to question dates.
* **Author separator**, the word between the author name and the date, `on` by default.
* **Show Last name as initial**, so Sarah Jennings becomes Sarah J.
* **Show Trailing 0s in Ratings**, so a four-star average reads `4.0` rather than `4`.
* **Verified Purchase Label**, and **Show shared review badge** with its own badge text for reviews from a shared source.

**What shows when there is nothing to show**

* **Review summary with no reviews**, for example `No reviews yet`.
* **Hide rating when product has zero reviews**.
* **Hide the whole block when there are zero reviews**. This hides the Write a review button too, though the block still appears if there are questions to display.

#### Text fields that accept variables

Several fields take variables. They are listed under each field in the editor, and you can click a snippet to add it:

| Field                                     | Variables                                                                   |
| ----------------------------------------- | --------------------------------------------------------------------------- |
| **Headline**                              | `_product_title_`, `_review_count_`, `_avg_rating_`, `_total_review_count_` |
| **Review summary with 1 or more reviews** | `_review_count_`, `_avg_rating_`, `_total_review_count_`                    |
| **Shared review badge text**              | `_product_name_`                                                            |

So a Headline of `_avg_rating_ Stars` renders as `4.0 Stars`, and a summary of `Based on _review_count_ reviews` renders as `Based on 3 reviews`.

{% hint style="info" %}
`_review_count_` counts reviews with a star rating. `_total_review_count_` counts every review, including ones left without a star rating. Use both to show, for example, "Based on 2 ratings and 10 reviews". See [Count only rated reviews in star averages](https://docs.roadmap.so/reviews/storefront-and-display/count-only-rated-reviews-in-star-averages.md).
{% endhint %}

### Ask Question Form

Further down the same group, these settings cover the questions side of the block:

* **Ask a question button text**.
* **Question submitted message**, shown to the shopper after they ask.
* The summary shown when a product has no questions yet.

### Question Settings

The second group in **PDP Block Settings**, for managing the questions attached to the block.

### Styling the block

**Widget Stylings** holds the block's visual settings, grouped as:

| Group                | Covers                                                                                    |
| -------------------- | ----------------------------------------------------------------------------------------- |
| **Font Styles**      | Heading, subheading and paragraph colour, size and weight.                                |
| **Rating & Buttons** | Star colour, size and style, and every button property.                                   |
| **Container**        | The block background, the review cards themselves, and answer backgrounds.                |
| **Layout**           | Container width, container padding for desktop and mobile, and padding between elements.  |
| **Images & Video**   | How review media and the gallery display, lightbox colours, image sizes and aspect ratio. |
| **Accents**          | The Verified Purchase badge, and every property of the shared review badge.               |

{% hint style="info" %}
**Container Width** accepts a percentage or a pixel value, so `100%` and `960px` are both valid. Mobile padding falls back to the desktop value when left blank, the same pattern as reviews per page.
{% endhint %}

For the image and video settings in detail, including the media gallery and lightbox, see [Enable image display in the PDP review widget](https://docs.roadmap.so/reviews/storefront-and-display/enable-image-display-in-the-pdp-review-widget.md).

### Choose a block style

<figure><img src="https://393112916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ8asLD4FVCFagK40xEr4%2Fuploads%2Fu7TpfR7LKGaBAEjLiOPT%2FScreenshot%202026-10-20%20at%2012.19.13%E2%80%AFPM.png?alt=media&amp;token=8508fe46-1910-4298-a516-4fd10cfa7de1" alt="" width="563"><figcaption></figcaption></figure>

**Edit Layout**, next to the Widget Stylings title, opens **Select a review block style**. The layout you are on is marked **Current**.

| Layout        | When to use it                                                                                            |
| ------------- | --------------------------------------------------------------------------------------------------------- |
| **Block**     | Review-led display with customer imagery as the focus. Good for browsing and filtering large review sets. |
| **Editorial** | Lifestyle-led layout that showcases your own imagery, with a lighter review presence.                     |

Click **Use This Layout** on the one you want, then **Select** to confirm.

{% hint style="warning" %}
Review filters are only available on the **Block** layout. If you rely on shoppers filtering by question answers, Editorial will remove that.
{% endhint %}

### Layout Settings

The gear icon on the **Editorial** card opens **Layout Settings**, which controls which sections appear, in what order, and what sits inside each one.

There are three sections, each with a drag handle to reorder it and an eye icon to hide it. Within each, individual items have their own checkboxes and drag handles, plus **Show all** and **Hide all** buttons.

<figure><img src="https://393112916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJ8asLD4FVCFagK40xEr4%2Fuploads%2FMtctUtlHmAXXkNFezNcl%2FScreenshot%202026-10-20%20at%2012.47.29%E2%80%AFPM.png?alt=media&amp;token=1eac6d2b-329a-4f67-b161-68c9894d921b" alt=""><figcaption></figcaption></figure>

#### Review Stats & Form

The rating summary and the Write a review button. The items you can show, hide and reorder are **Total Rating**, **Star Rating**, **Headline**, **Review Count Text** and **Write Review Button**.

Two of them have their own text settings:

* **Rating text**, under Total Rating. Put `_avg_rating_` where you want the number to appear, or leave the field empty to show the rating on its own.
* **Headline text**, shown above the stats and again as the reviews list heading. It accepts `_product_title_`, `_review_count_` and `_avg_rating_`.

The Headline also has a **Product Metafield** field, for example `custom.review_subheading`, which overrides the headline on a per-product basis.

#### Image

The lifestyle image that gives the Editorial layout its character.

* **Add image** uploads one static image used on every product.
* **Product Metafield**, for example `custom.review_image`, pulls a different image per product.

{% hint style="warning" %}
If you use a Product Metafield for the image, check your products actually have that metafield populated. Any product without it shows an empty image area.
{% endhint %}

#### Reviews List & Filters

The review list itself, organised into groups you can reorder and toggle:

| Group            | Items                                      |
| ---------------- | ------------------------------------------ |
| **Header Group** | Header, Filters                            |
| **Rating Group** | Review Rating, Verified Badge              |
| **Review Title** | Review Title                               |
| **Author Group** | Author Name, Author Separator, Review Date |
| **Review Body**  | Review Body                                |
| **Review Image** | Review Image                               |
| **Shop Reply**   | Shop Reply                                 |

Click **Save** in the Layout Settings modal to apply your changes, or **Close** to leave them.

### Related guides

* [Customise review widget design](https://docs.roadmap.so/reviews/storefront-and-display/customise-review-widget-design.md)
* [Add reviews to product pages](https://docs.roadmap.so/reviews/storefront-and-display/add-reviews-to-product-pages.md)
* [Enable image display in the PDP review widget](https://docs.roadmap.so/reviews/storefront-and-display/enable-image-display-in-the-pdp-review-widget.md)
* [Edit your review form](https://docs.roadmap.so/reviews/storefront-and-display/edit-your-review-form.md)
* [Count only rated reviews in star averages](https://docs.roadmap.so/reviews/storefront-and-display/count-only-rated-reviews-in-star-averages.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.roadmap.so/reviews/storefront-and-display/edit-your-pdp-review-block.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
