How to add a pricing calculator to WordPress
This implementation guide will show you how to add a TargaCalc pricing calculator to a WordPress website.
Last updated: June 5 2026
Page Navigator
Use the links below to quickly access sections of the page which are most relevant to you.
Adding a Quote Calculator to a WordPress Website
Before you read any further, if you intend to add a TargaCalc calculator to website which has NOT been built with WordPress, there is a separate implementation guide to help you.
A downloadable PDF of this TargaCalc WordPress implementation guide is available to help you.
Most pricing calculators (also known as quote calculators, cost estimators, or quote generators) which have been produced by TargaCalc work within an iFrame.
An iFrame is a very well established method of allowing features to display within a web page.
But let’s keep it simple...
You don't need to know all about iFrames, because all you really need to be aware of is how to apply the implementation tag which is described below.
This TargaCalc implementation guide has been written to make the process as smooth as possible, and if you already know how to copy and paste, you'll find this pretty easy!
But we welcome any questions which you might still have after reading this implementation guide, so feel free to ask.
The TargaCalc Implementation Tag
Let’s begin with what we call the implementation tag
Please don't worry if the following piece of code makes no sense to you. You're not expected to understand it, and it's okay if you don't.
So keeping it simple...
You'll receive your own unique TargaCalc implementation tag which is ready to use. We will have already been set it so so it will access your very own pricing calculator, and you won’t need to change a thing!
This is what it will look like...
<!-- TargaCalc iFrame start -->
<div id="targacalc"></div>
<script src="https://www.targacalc.com/calcs/custom.js" data-id="YOURCALC01"></script>
<!-- TargaCalc iFrame end -->
Explaining the implementation tag
The following description of the implementation tag has been provided in case you're curious:
Start and End comments (green):
- These two comments do nothing, other than make it clear to anyone who views your website's source code that TargaCalc code sits between these two comments. In other words, they're just notes for reference.
div
tag (purple):
- This where the action takes place.
- Your calculator will display from within this
div
which you can think of like a virtual box which sits on your web pages.
JavaScript (orange):
- This is what makes things happen.
- A JavaScript file which lives on TargaCalc.com is used to display your pricing calculator on your website.
- Your own pricing calculator will be given a unique reference, and this will be used in place of
YOURCALC01
which you'll see in the above example.
Embedding the TargaCalc iFrame in WordPress
Unlike some website builders, WordPress does not block iFrames by default, but the method depends on whether your website is using:
- Block Editor (Gutenberg): Use the
Custom HTML
block and paste in the implementation tag. - Page Builders (Elementor, Divi, Beaver, etc.): Use their HTML or Code Embed widget and paste in the implementation tag.
- Classic Editor: Switch to the Text tab (not “Visual”) before pasting in the implementation tag.
Therefore, depending on which of the above types of editor you or your web designer are using in WordPress, you simply need to follow the guidelines described above. Then you can locate page and position where you want your calculator to display, and add the implementation tag described above.
Viewing your pricing calculator
Designed to work on your website's domain
For security reasons, your calculator will have been configured to work on the specific domain name of your website.
Testing within your development environment.
If you have an offline
development environment for your website, you can advise us of the domain of your development environment. We should then be able to extend access so that your pricing calculator will work correctly on both your live website and also within your development area.
If your development area is simply something like https://www.your-domain.co.uk/wp-admin/
the pricing calculator should still display correctly.
But if things don't look like you expect, let us know and help you to get things working.
Automatic Resizing
For the iFrame to automatically resize depending on height (or length) of the calculator’s display area, it will use JavaScript which we host on the TargaCalc platform as part of your pricing calculator code base.
The JavaScript will not only allow automatic resizing of the iFrame, but it will also allow your webpage to automatically scroll to the top of the calculator display, each time the user moves between the selection and results parts of the calculator.
Trust & Cross-Domain Security
The following information is more likely to be understood by your web developer, but it has been written to make it more generally understandable.
Besides the resizing and scrolling, trust is another very important thing which the JavaScript takes care of.
Because the calculator will be hosted on targacalc.com and displayed within an iFrame on your website, two pieces of JavaScript will have been coded to allow cross-domain communication.
This simply means that your domain will trust targacalc.com, and targacalc.com will trust your domain.
Adding your calculator to other pages
You can apply your TargaCalc pricing calculator to other pages on your website at no additional cost!
This also means that although you will be able to apply your pricing calculator to more than one page on your website, you won't be able to apply it to another website and expect it to work. That's because of the trust aspect described in the previous section.
Compatibility concerns?
Compatibility
At time of writing, it is understood that the only place “trust” issues can arise is if the platform strips out iFrames or scripts.
- Self-hosted WordPress.org sites (the majority) have no issue.
- There could be an issue on WordPress.com free/standard plans, which block custom scripts.
- WordPress.com (hosted version) is stricter and may block third-party scripts, but in most cases implementing a TargaCalc calculator onto a WordPress website doesn’t encounter this problem.
- Theme interference: Some WordPress themes (especially heavy page builders) apply extra CSS like to control iFrames, but in most cases this can be overcome with the CSS (styling code) which comes as part of the TargaCalc implementation tag.
Any Questions or Concerns?
If you have any questions or concerns about compatibility and want to be sure that a TargaCalc pricing calculator will actually work on your WordPress website, please get in touch and we will configure a demo calculator for you to try.
This will be completely free of charge!
Of course a demo calculator will not have been configured for your specific business and pricing model, but at least you’ll know whether it would work. It will also give us the opportunity to iron out anything which doesn’t go as smoothly as we would expect it to.
Your Implementation Questions Answered
How can I get an online quote calculator for my website?
If you already have a website, you could ask your web designer to build you an online calculator.
Some web designers might use an off-the-shelf plug-in if your website has been built using WordPress or some other website builder platform, but if you're fortunate enough to have a web designer who can understand and write code, they might be able to build a bespoke quote calculator for you.
Of course TargaCalc can build you a bespoke cost calculator which can be applied directly to your website, or we could build a calculator on your behalf which your web designer could add to your website.
How can I add a quote calculator to my website?
If you already have a website, you could ask your web designer to build you an online calculator.
Depending on your needs, a bespoke online quote calculator could take anything from 5 days to design and build. However, TargaCalc have streamlined a process which can make customisable calculators quicker and cheaper, with costs starting at just £595, and are usually able to be completed within a couple of days.
How is the cost calculator added to my website?
TargaCalc makes it really easy to add your new calculator to your website. Your web designer will simply need to add a small piece of code so that the calculator can be made visible to visitors of your website.
We can of course help and advise with that process.
Can a calculator be added to more than one website?
In some respects, a TargaCalc calculator can be added to more than one website.
However, it's important to understand that because there is a trust element in the way that we control the height of the parent page iFrame window on your domain based on the individual calculator pages which are hosted on TargaCalc's domain.
Without that trust element being applied between your domain and TargaCalc's domain, there will be no automated control over the iFrame height whilst the calculator is in use.
Can a cost calculator be added to a WordPress website?
Yes. TargaCalc have successfully devised a way for our cost calculators to be applied to WordPress websites.
It isn't difficult, and we can help you by guiding you through the process and testing.
How do I know that my calculator will work?
If you have any doubts that a pricing calculator will work on your website, simply get in touch and ask for the implementation tag to a demo version, and you will also be sent the implementation guide which will take you or your web designer through the simple steps to be taken.
If you are asking whether your specific calculator will work as you intend it to, please remember that it will be design and configured for you based on your requirements and your pricing model, and you’ll also get to test is as many times as you want before it goes live.
Either use the secure form on the right, or you can simply email, phone or book a 30 minute slot in the calendar for an obligation free chat:
Simply email, phone or use the secure form below, or book a timeslot in the calendar:
