Skip to content
Help Center
Log in Sign up free

Install the widget on WordPress

This guide uses the JustReview Testimonials widget as the example. Every other widget works the same way.

Add the library to your theme

  1. Build your widget and click “Generate Code for your website”.

  2. Open the theme editor: Appearance → Theme File Editor.

  3. Edit footer.php and paste part 1 and part 2 before the closing </body> tag.

    Part 1 loads the library and belongs on the page only once, even when you display several widgets. Part 2 is the configuration for one widget, so add one part 2 per widget.

    Save with Update File.

Place the widget on the page

Part 3 of the snippet is the container that decides where the widget renders. Pick the method that matches how you build pages.

Paste part 3 into the template file at the spot where the widget should show up.

Do not forget to save.

Widget still not visible?

Work through these in order, they cover almost every case:

  1. Domain whitelist in Settings matches your address.
  2. Part 3 (the container <div>) is present on the page. Without it there is nothing to fill.
  3. Caching plugin. WP Rocket, LiteSpeed Cache and similar tools cache the old HTML and can defer or combine JavaScript. Purge the cache, and exclude justreview.js from JS optimisation.
  4. Part 1 appears exactly once. Loading the library twice can break rendering.
  5. The Badge widget needs at least one review before it shows anything.