Replace “Reviews” with “Votes” in GD Star Rating for WordPress
GD Star Rating is a complex plugin that allows you to integrate a rating system in articles, pages and comments from your blog. GD Star Rating allows you to add widgets into slidebars for displaying total rating and statistics generated by the plugin.
Being compatible with Google Rich Snippets, the only requirement is to enable this functionality in the plugin settings.
If you want to change the word “Reviews” to “Votes” in Google’s search results, you must do the following changes:
1. In WordPress go to Control Panel and select Plugin Editor from Plugins. Select GD Star Rating from the list on right side and then click on gd-star-rating/gdragon/gd_google.php
2. Replace all lines:
$tpl = str_replace(“%WORD_VOTES%”, _n(“rating”, “ratings”, $votes, “gd-star-rating”), $tpl);
with this line:
$tpl = str_replace(“%WORD_VOTES%”, _n(“vote”, “votes”, $votes, “gd-star-rating”), $tpl);
3. Replace all lines:
$tpl.= ‘ %WORD_BASEDON% <span class=”count”>%VOTES%</span> %WORD_VOTES% ‘;
with this line:
$tpl.= ‘ %WORD_BASEDON% <span class=”votes”>%VOTES%</span> %WORD_VOTES% ‘;
4. Replace all lines:
$tpl.= ‘ %WORD_BASEDON% <span itemprop=”count”>%VOTES%</span> %WORD_VOTES% ‘;
with this line:
$tpl.= ‘ %WORD_BASEDON% <span itemprop=”votes”>%VOTES%</span> %WORD_VOTES% ‘;
5. Replace all lines:
$tpl.= ‘ %WORD_BASEDON% <span property=”v:count”>%VOTES%</span> %WORD_VOTES% ‘;
with this line:
$tpl.= ‘ %WORD_BASEDON% <span property=”v:votes”>%VOTES%</span> %WORD_VOTES% ‘;
After modifications, make a test using Google Rich Snippets Testing Tool, the word “Reviews” will be replaced by “Votes”.