Step 1: Select Your E-commerce Platform
Log into your WordPress admin dashboard where WooCommerce is installed.
yoursite.com/wp-admin
- Navigate to your WordPress admin panel
- Make sure you have admin privileges
- Ensure WooCommerce is active
You have two options for adding the widget code:
Option A: Theme Editor
Go to Appearance → Theme File Editor
Option B: Code Snippets Plugin
Install Code Snippets or Insert Headers and Footers plugin
This is your personalized widget code for WooCommerce.
<!-- Customer Reviews Widget -->
<div id="review-widget-container"></div>
<script src="https://yourapp.com/widget.js?store_id=YOUR_STORE_ID"></script>
Not yet generated
Choose your method and add the code:
Method A: Theme Editor
- Navigate to Appearance → Theme File Editor
- Find
single-product.phporcontent-single-product.php - Locate the section after
woocommerce_after_single_product_summary - Paste your widget code
- Click Update File
Method B: Using a Hook (Recommended)
// Add to your theme's functions.php or use Code Snippets plugin
add_action('woocommerce_after_single_product_summary', 'add_review_widget', 15);
function add_review_widget() {
echo '<div id="review-widget-container"></div>';
echo '<script src="https://yourapp.com/widget.js?store_id=YOUR_STORE_ID"></script>';
}
Let's verify that the widget is working on your WooCommerce store.
You'll need access to edit your website's HTML code. This varies by platform.
This is your personalized widget code.
<!-- Customer Reviews Widget -->
<div id="review-widget-container"></div>
<script src="https://yourapp.com/widget.js?store_id=YOUR_STORE_ID"></script>
Not yet generated
Paste the code where you want reviews to appear on your product pages.
- Locate your product page template or HTML file
- Find where you want reviews to display
- Paste the widget code
- Save your changes
- Clear any caches if applicable
Verify the widget is working correctly.
Need help? Contact Support or view our Documentation