0
Under review

Option to add review responses

jason 2 years ago updated by Josh 2 years ago 5

It would be great to have an option to display the business response to reviews under the review.

+2
Under review

I can add this to the list of requested updates. In the meantime, you could do it with a custom child theme. More info here...

https://wpreviewslider.userecho.com/knowledge-bases/2/articles/553-use-child-theme-to-customize-the-review-template-more

Thank you for the response! (accidentally made two accounts, this is OP) It's great that you can use templating to customize this so heavily. I am really liking the pro version of the plugin so far.

I implemented this for template 2 and while it works well for facebook and yelp, all the google responses are missing. Is it because I obtained the reviews before getting the pro version, and if so is there a way to specifically re-crawl the existing reviews to grab the responses?

Also curious if there would be a way to put it behind a "read more" link like the reviews can be if longer than a certain number of characters.

+1

Yes, you would need to delete those Google reviews that you downloaded with the Free version. They aren't going to have the owner response. Then you can re-download them with the Pro.

You could add a read more to the owner response but it would take some programming. Basically separate the response with PHP and add some HTML tags like <span> around them. You would hide/show the second half of the response. You would need to it with either some CSS.

https://stackoverflow.com/questions/6019845/show-hide-div-on-click-with-css

or some jquery/javascript...

https://www.w3schools.com/jquery/jquery_hide_show.asp

Hey Josh, thanks for the response, and sorry for my belated one.

I actually tried deleting a Google review that I know has a response, and re-fetching it. It found it and added it, but without the response again. Any tips for troubleshooting?

As for the review response, I went with the below, but I'm not quite sure if it will work yet as I do not have any responses showing that are long enough to trigger it. Would it also be possible to show the review location in this file?

Thanks!

<div class="review-reply"> <?php $ownerdetails = json_decode($review->owner_response,true); if($ownerdetails) { $comment = $ownerdetails['comment']; $wordCount = str_word_count($comment); echo '<strong>Our Response: </strong>'; if ($wordCount <= 40) { echo "<p>{$comment}</p>"; } else { $words = explode(' ', $comment); $firstPart = implode(' ', array_slice($words, 0, 40)); $secondPart = implode(' ', array_slice($words, 40)); echo `<p id="first-part">{$firstPart} <span id="second-part" style="display:none;">{$secondPart}</span><a href="#" id="read-more">Read more</a></p> `; } } ?> </div>

What method are you using to download the Google reviews? The Google Crawl should have owner response, the review funnel should also have them, but I have checked in a while. The Places API does not. Let me know the source of the Google reviews and I'll test on my site.