Quick Start (Any Site)
Every TradeCalcs product works the same way: copy a code snippet, paste it into your website. No plugins, no installs, no developer needed.
For Calculators
Calculators use an <iframe> embed. Copy this code and paste it where you want the calculator to appear:
<iframe
src="https://tradecalcs.com/calculators/kitchen_calculator_v1/"
width="100%"
height="700"
frameborder="0"
title="Kitchen Remodel Calculator">
</iframe>
Replace kitchen_calculator_v1 with the calculator you purchased. The full list is in your Customer Portal.
For Widgets
Widgets use the TradeCalcs loader script. One line of code:
<script src="https://tradecalcs.com/embed/loader.js"
data-widget="google_reviews">
</script>
Replace google_reviews with your widget name. The widget renders automatically where you place the script tag.
Tip: Both embed types are responsive and will fill the width of their container. Place them inside a section, column, or div on your page.
WordPress
Note: Some page builders (Elementor, Divi, Beaver Builder) have their own "HTML" or "Code" widget. Use that instead of the WordPress block.
Wix
Tip: For calculators on Wix, set the embed element height to at least 700px for the best experience.
Squarespace
Note: Squarespace Code blocks only render on the live site, not in the editor preview. Preview your page to see the embed.
Duda
Webflow
Shopify
Raw HTML / Any Site
Universal Loader (Advanced)
For developers or sites needing multiple widgets, use the TradeCalcs Universal Loader. One script loads any product:
Auto-Init (simplest)
<script src="https://tradecalcs.com/embed/loader.js"
data-widget="google_reviews"
data-token="YOUR_EMBED_TOKEN"
data-color="#2563eb">
</script>
Manual Init (more control)
<script src="https://tradecalcs.com/embed/loader.js"></script>
<div id="my-calculator"></div>
<script>
TradeCalcs.load('kitchen_calculator_v1', {
container: 'my-calculator',
token: 'YOUR_TOKEN',
color: '#2563eb',
brand: 'Your Company'
});
</script>
Available data attributes
data-widget — Product key (e.g., google_reviews, kitchen_calculator_v1)
data-token — Your embed token from the Customer Portal
data-color — Primary color override (hex)
data-brand — Your company name for white-label
data-container — Target container element ID
Troubleshooting
Widget not showing up?
- Check the embed code: Make sure the entire code was pasted, including the closing tags
- Check for script blockers: Ad blockers or cookie consent tools may prevent scripts from loading
- Try a different browser: Test in incognito/private mode to rule out extensions
- Check the console: Open browser Developer Tools (F12) and look for errors in the Console tab
Calculator too small or cut off?
- Set the iframe
height to at least 700 (pixels)
- Make sure no parent container has
overflow: hidden that clips the content
- On Wix/Squarespace, resize the embed element by dragging its corners
Widget shows on desktop but not mobile?
- Check if your page builder has separate mobile visibility settings
- Ensure the embed container has
width: 100% (our embeds are responsive by default)
Need help?
Email [email protected] with your website URL and the product you're trying to install. We'll get you set up.