How to Install Opinafy on WordPress
Add verified customer testimonials to your WordPress site in less than 5 minutes. No technical knowledge required.
Create your Opinafy project
- Sign up for Opinafy (it's free).
- Go to the Dashboard and click "New Project".
- Enter your website name and customize the collection form.
- Share the collection link with your customers or import existing testimonials.
Get the embed code
- Inside your project, go to the "Widget" section.
- Customize the design: choose layout (carousel, grid, wall...), colors, and typography.
- Copy the embed code shown below the preview.
The code will look like this:
<script src="https://opinafy.com/widget.js" data-project="YOUR_PROJECT_ID"></script>Replace YOUR_PROJECT_ID with your actual project ID.
Add the code to WordPress
You have two options to insert the widget on your WordPress site:
Option A: Custom HTML Block (recommended)
- Edit the page or post where you want to display testimonials.
- Add a "Custom HTML" block.
- Paste the Opinafy embed code.
- Publish or update the page.
Option B: Header/Footer Plugin
If you want testimonials on every page:
- Install a plugin like "Insert Headers and Footers" (WPCode) or "Header Footer Code Manager".
- Go to Settings > Insert Headers and Footers.
- Paste the Opinafy code in the "Footer" section.
- Save changes.
Option C: Shortcode (advanced users)
Add this to your functions.php file:
function opinafy_widget_shortcode() {
return '<script src="https://opinafy.com/widget.js" data-project="YOUR_PROJECT_ID"></script>';
}
add_shortcode('opinafy', 'opinafy_widget_shortcode');Then use [opinafy] in any page or post.
Verify it works
- Visit the page where you inserted the widget.
- It should automatically load and display your approved testimonials.
- If you don't see anything, verify you have testimonials with "Approved" status in your dashboard.
- Check that the project ID is correct.
Tip: If you use a caching plugin (WP Super Cache, W3 Total Cache, etc.), clear the cache after adding the widget to see changes immediately.
Frequently Asked Questions
Does the widget affect my site speed?
No. The Opinafy script weighs less than 25 KB and loads asynchronously. It won't block your page loading.
Does it work with Elementor, Divi, or other page builders?
Yes. You can paste the code in any HTML block or code module in your favorite page builder.
Can I customize the widget design?
Absolutely. From the Opinafy dashboard you can change colors, typography, layout, borders, and more. Changes apply in real time.
Do I need to update the code when I add new testimonials?
No. The widget updates automatically. When you approve a new testimonial, it appears on your site without touching any code.
Is it compatible with WooCommerce?
Yes. You can add the widget on product pages, your store homepage, or any other WooCommerce page.
Ready to add testimonials to your WordPress site?
Create your free account and start showing social proof on your site in minutes.