Skip to content

How to integrate a widget in WordPress

First create your widget in the ReviewForest dashboard and copy its code, as described in Install a ReviewForest widget. Where the code goes in WordPress depends on the widget.

A floating badge needs its code on every page. WordPress has no field for that out of the box, so use the free plugin WPCode, formerly called Insert Headers and Footers.

  1. In your WordPress admin, go to Plugins → Add New Plugin, search for WPCode Insert Headers and Footers, then install and activate the WPCode plugin.

  2. Go to Code Snippets → Header & Footer.

  3. Paste the widget code into the Footer field and click Save Changes.

For all other widgets, for example the carousel, the review forest widget, the mini widgets or badges with a fixed position:

  1. Open the page or post in the WordPress editor.

  2. Where the widget should appear, add a Custom HTML block. You can type /html in an empty line to find it.

  3. Click Edit HTML, paste the widget code into the HTML tab and click Update.

  4. Save the page.

The editor doesn’t run the widget code, so the block stays empty there. To see the widget, open the preview or the published page.

If you build your pages with Elementor, use its HTML widget and paste the code into the HTML Code field.