Knowledge Base

Knowledge base

Explore How-To's and learn best practices from our knowledge base.

Widgets shortcode

Modified on: Thu, 30 May, 2019 at 11:44 PM


Widgets shortcode

1. Preview badge (star rating)

You can use the code [jgm-preview-badge] in the product page and it will show the star rating of that product.

To show star rating of any product, please use [jgm-preview-badge id=/insert product id/]. For example: [jgm-preview-badge id=342] to show the star rating of the product with id 342.

2. Review widget

You can use the code [jgm-review-widget] in the product page and it will show the review widget of that product.

To show the review widget of any product, please use [jgm-review-widget id=/insert product id/]. For example: [jgm-review-widget id=342] to show the review widget of the product with id 342.

3. All reviews page

Create a new page, eg: http://www.your-shop.com/reviews and put in this shortcode:

[jgm-all-reviews]

4. Featured Reviews Carousel

Insert this shortcode anywhere on your pages:

[jgm-featured-carousel title='Let customers speak for us' all-reviews-page='#']

You can customize the title field and put the link of the all reviews page created above to the all-reviews-page field.

Note: You will need to feature at least 1 review (recommended: 3) to show the carousel.

For more information about the featured carousel, please read here: http://help.judge.me/knowledge_base/topics/review-carousel

Extra Customization

For the styling customization as instructed in the above article, you can put the css code in your theme's css file. Usually you can edit the file by go to Wordpress Dashboard > Appearance > Editor and edit the Stylesheet file (style.css) and put the code at the end of that file.

Note: Depends on your wordpress hosting's setting, you may not be able to edit the file in the Wordpress Editor but have to edit the theme file manually using FTP.

For the script customization (Disabling Auto-slide and Changing auto-sliding time), put the code in the "footer.php" file right before the </body> tag.

5. Reviews tab

We suggest to put this shortcode in a text widget in footer so that it can be show in every pages.

The shortcode is:

[jgm-reviews-tab button='★ Judge.me Reviews' title='Let customers speak for us']

For more information about the reviews tab, please read here: http://help.judge.me/knowledge_base/topics/reviews-tab

6. Verified Reviews Count Badge

You can put this shortcode in anywhere in your theme to show the count of verified reviews:

[jgm-verified-badge]

For more information about the verified reviews count badge, please read here: http://help.judge.me/knowledge_base/topics/verified-reviews-count-badge



Did you find it helpful? Yes No

Can you please tell us how we can improve this article?

More articles in Woocommerce