> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yayreviews/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yayreviews/features/gutenberg-blocks.md).

# Gutenberg Blocks

<figure><img src="https://2112674995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fr8lIE7jh3IQfBWIJiYxM%2Fuploads%2F4EWtpfPHaVpBU0bL1f0j%2Fimage.png?alt=media&amp;token=0f620875-fe46-4fd5-836c-91d04329cda1" alt=""><figcaption></figcaption></figure>

YayReviews Pro includes a collection of Gutenberg blocks that let you display reviews and review-related widgets directly in the WordPress Block Editor. Each block provides the same functionality as its corresponding shortcode while offering an easier visual editing experience.

### Add a YayReviews Block

To add a YayReviews block:

1. Open any page or post in the WordPress Block Editor.
2. Click the **+** button to add a new block.
3. Search for **YayReviews**.
4. Select the block you want to insert.
5. Configure the block using the settings panel on the right.
6. Publish or update the page.

#### Available Blocks

YayReviews provides the following Gutenberg blocks:

* All Reviews
* Product Rating
* Review Form
* Testimonials
* Review Gallery
* Review Overall
* Review Summary
* UGC Media
* Store Reviews
* Store Review Form

### Block Settings

Each Gutenberg block includes its own settings panel in the WordPress editor. Depending on the selected block, you can customize options such as:

* Number of reviews displayed
* Minimum rating
* Layout
* Default sorting
* Display filters
* Product selection
* Author and date visibility
* Media display
* Verified badge
* Review summary
* And other widget-specific settings

> **Note:** The available settings vary depending on the selected block.

### Publish the Page

After configuring the block, simply **Publish** or **Update** the page. The review widget will be displayed on your storefront without requiring any shortcode.

<figure><img src="https://2112674995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fr8lIE7jh3IQfBWIJiYxM%2Fuploads%2FntWuSQ8ZwpdBzuYAoXRM%2Fthe%20front%20end%20of%20Gutenberg%20blocks%20of%20YayReviews.png?alt=media&amp;token=e14131b1-4a53-4abd-87ce-b0d140730dbe" alt=""><figcaption></figcaption></figure>


---

# 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.yaycommerce.com/yayreviews/features/gutenberg-blocks.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.
