Skip to content

A javascript widget that pulls up to 5 Google reviews via Google Place API

License

Notifications You must be signed in to change notification settings

ETfrom2100/GoogleReviewWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Review Widget

A javascript widget plugin that pulls up to 5 Google business reviews

Inspired by: https://wordpress.org/plugins/google-places-reviews/

How to use

Requirement

Google Maps Javascript API and the Places Library

<script src="https://maps.googleapis.com/maps/api/js?key=API_KEY&libraries=places"></script>

HTML

<div id="review_widget">
</div>

Javascript

$GrwJS.init({
target:'#review_widget',
placeid:'ChIJpcanZ0L2wokRoWs8p9gEJcM', //Google place ID
theme:'dark', //dark or light
numOfWords: 20 ////max number of words for each review. default:20
});

Google Place ID can be found here:

https://developers.google.com/maps/documentation/javascript/examples/places-placeid-finder

Browser compatibility

  • All mordern browsers, including IE9 and above

About

A javascript widget that pulls up to 5 Google reviews via Google Place API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published