- Customize attributes of the Review Stream widget, including the number of reviews displayed, by modifying the embed code.
By default, the Review Stream widget will display a maximum of 20 reviews, with the rest hidden behind a See More Reviews link. If the widget is embedded in a smaller piece of webpage real estate, it will display as many reviews as can be accommodated in that space. If you’d like to further limit the number of reviews displayed beyond what these rules will cover, read on below.
First, grab your Review Stream embed code from Dashboard > Widgets. If you’ve already embedded the code in your website editor, locate it there.
To limit the number of reviews your stream displays, simply add the attribute data-review-limit=”#” inside the <div> tags. Here is an example embed code with the review limit set to 5.
<div class="gradeus-stream" data-review-limit="5" data-url="http://grade.us/yourname"></div> <script>// <![CDATA[ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.grade.us/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document, "script", "gradeus-wjs"); // ]]></script>
That’s it!