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.
Floating badge on every page
Section titled “Floating badge on every page”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.
-
In your WordPress admin, go to Plugins → Add New Plugin, search for WPCode Insert Headers and Footers, then install and activate the WPCode plugin.
-
Go to Code Snippets → Header & Footer.
-
Paste the widget code into the Footer field and click Save Changes.
Widget at a specific spot
Section titled “Widget at a specific spot”For all other widgets, for example the carousel, the review forest widget, the mini widgets or badges with a fixed position:
-
Open the page or post in the WordPress editor.
-
Where the widget should appear, add a Custom HTML block. You can type
/htmlin an empty line to find it. -
Click Edit HTML, paste the widget code into the HTML tab and click Update.
-
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.