How to Modify Review Block Schema?

The Product Review block, by default, displays the product name, rating, pros, and cons, price, as well as some key characteristics. These appear in the structured data of the post where the block is inserted. 

However, if you need to display other markups in the structured data of the post, you can do so by following these steps:


First, navigate to Settings > Otter and enable the Rich Schema option.


Copy the following  code snippet:

add_filter( 'otter_blocks_review_block_schema', function( $schema, $attributes ) {
	$schema['brand'] = array(
		'@type' => 'Brand',
		'name'  => 'CheeseMaster'

	return $schema;
}, 10, 2 );

📝 Note: For more information about the Review Schema, check this documentation.


Replace the "brand" word inside the schema, the type, and the name to contain the desired markup.


Paste the code into the functions.php file of the Otter Blocks plugin.


Once you have done this, the new markup will appear in the

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us