# How to Add a Calculator to the Page

{% embed url="<https://www.youtube.com/watch?v=WRW-miPQWvc>" %}

This guide will help you to insert calculators into the page of your website. There are several ways to do it.

## Embedding calculators from the Cost Calculator dashboard.

Calculators can be added to the page with easy steps. To open Calculator embed options just click on the Embed button:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FnEXdWyqjI32lpcjJzqjH%2FCCBN%20-%20%20Embed%20button.png?alt=media&#x26;token=054a68c8-45a1-44df-b5c8-82e4d4117988" alt=""><figcaption></figcaption></figure>

Following one of the options below in the Cost Calculator dashboard the calculator can be embedded:

* [Inserting manually with Shortcode.](#inserting-manually-with-shortcode)
* [Selecting existing pages to embed Calculator.](#select-existing-pages)
* [Creating a new page to insert the Calculator.](#creating-new-page)

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FwRZDy1t1mA6IBdIp0Hh4%2FCCBN%20-%20%20Embed%20Popup.png?alt=media&#x26;token=3edd9c06-b235-48b2-97ad-7e1c7868d2be" alt=""><figcaption></figcaption></figure>

You can also get this menu inside the Calculator by clicking the Ember button:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FWEjfuXFxgYatY7Q76cq3%2Fimage.png?alt=media&#x26;token=057f8206-0563-45db-8df8-6d0a13819cb2" alt=""><figcaption></figcaption></figure>

### Inserting manually with Shortcode

You can use shortcodes to show created calculators on some pages or posts manually.

First, click on the embed button of the desired calculator:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FnEXdWyqjI32lpcjJzqjH%2FCCBN%20-%20%20Embed%20button.png?alt=media&#x26;token=054a68c8-45a1-44df-b5c8-82e4d4117988" alt=""><figcaption></figcaption></figure>

Next, in the opened Pop Up window expand Insert manually option and copy the Calculator Shortcode:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Fig7cd9XoAHYn9tG2cl89%2FCCBN%20-%20%20Shortcode%20copy.png?alt=media&#x26;token=045d1f71-bf8e-4315-8820-1c3b49616093" alt=""><figcaption></figcaption></figure>

Then go to the **Pages** and edit one of the existing pages or click on **Add New** to create a new page.

![](https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FLvrK393J28uTn8yW6WGq%2FCCBN%20-%20%20All%20pages.png?alt=media\&token=ed85dc0b-e64a-4522-9da4-72cf0081d655)

You can paste the shortcode that you copied to the front page. To add that shortcode, you can use any page builder plugin (Gutenberg, Elementor, WPBakery) or you can use special elements instead of shortcode.

![](https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F7MU6yOBmw0bpeuPzr23f%2FCCBN%20-%20%20shortcode%20added.png?alt=media\&token=4348a61b-4371-4535-b262-799b981862e1)

### Select existing pages

You can add a Calculator to the existing pages automatically. First, click on the embed button of the desired calculator:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FnEXdWyqjI32lpcjJzqjH%2FCCBN%20-%20%20Embed%20button.png?alt=media&#x26;token=054a68c8-45a1-44df-b5c8-82e4d4117988" alt=""><figcaption></figcaption></figure>

Next, in the opened Pop Up window expand the **"Select existing pages"** option select pages, and click on the **Apply** button to embed the calculator:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F2a9f2RGwVfNwMOaGnSXd%2FCCBN%20-%20%20mbed%20to%20exsisting%20page.png?alt=media&#x26;token=4276d4fe-cf74-4723-aed0-782f835e1eae" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The Calculator will be added to the end of the page.
{% endhint %}

### Creating new page

You can add a Calculator by creating a new page. First, click on the embed button of the desired calculator:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FnEXdWyqjI32lpcjJzqjH%2FCCBN%20-%20%20Embed%20button.png?alt=media&#x26;token=054a68c8-45a1-44df-b5c8-82e4d4117988" alt=""><figcaption></figcaption></figure>

Next, in the opened Pop Up window expand the **"Create new page"** option and by giving the name click on the **Create Page** button to embed the calculator to this new page:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F9G5Ib3opwzcOjRrEjbzZ%2FCCBN%20-%20%20embed%20to%20the%20new%20page.png?alt=media&#x26;token=32e9158b-cc09-4ef8-803f-8295fa4b89b0" alt=""><figcaption></figcaption></figure>

After clicking on the Create Page button, you will be redirected to the newly created page with Calculator:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FunB331utWC9sAhB8BvcN%2FCCBN%20-%20%20embed%20to%20the%20new%20page%20done&#x27;.png?alt=media&#x26;token=9d5f3554-0d31-4d5d-91e8-32395cf57f0b" alt=""><figcaption></figcaption></figure>

## Embedding Calculators with Page Builders.

You can use the "Cost Calculator Builder" widget to inset the calculator with page builder plugins.

### Add Calculator with Elementor

In this page builder, there is a special element called Cost Calculator Builder, find that element and drag it.&#x20;

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FmXsaRFQJ8mRoDrzKTO1e%2Fimage.png?alt=media&#x26;token=28ce4227-ef11-401e-8ee5-1f47bcf0b3dc" alt=""><figcaption></figcaption></figure>

Then select the calculator that you want to add to the page and click the **Update** button.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FMT06FcbYetYQ2VjAijro%2Fimage.png?alt=media&#x26;token=b51d6aec-a2ac-4181-9f37-e97707cbc03c" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**NOTE:** In Elementor, you should initially save the calculator and then open it on the page in order to preview the calculator&#x20;
{% endhint %}

The result is the following:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FKXGJ541hAnS1bz31gBXW%2Fimage.png?alt=media&#x26;token=0c2e8093-5e8f-4bd6-9b1a-7770930798ee" alt=""><figcaption></figcaption></figure>

### Add Calculator with WPBakery

In the WPBakery page builder, there is also a special element called Cost Calculator Builder.&#x20;

1. First, edit the necessary page using WPBackery or you can also paste it to the empty page using the builder. Click on the **Add Element +** butto&#x6E;**:**

{% tabs %}
{% tab title="Existing Page" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FIlHtrLY4ccpTECvg4h4D%2Fimage.png?alt=media&#x26;token=8797247b-320b-47eb-8a34-bbdb2b709f6e" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Empty Page" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FnThMxWoV7qSqHuT932xs%2Fimage.png?alt=media&#x26;token=2be791c8-4ed4-43e0-9ef5-7a19c89c1e66" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

2. Search for **Cost Calculator Builder** element and click on it:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FbxDgkHuw1kzLXSEgsOwG%2Fimage.png?alt=media&#x26;token=3b187eb2-764a-4dc8-8f29-3963d57d9633" alt=""><figcaption></figcaption></figure>

3. Choose the necessary calculator from the list and click on the **Save Changes** button:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FranR2YHxyRUi7aK39ZWZ%2Fimage.png?alt=media&#x26;token=da1fd5d7-5356-413f-ae98-21a5ad7047ef" alt=""><figcaption></figcaption></figure>

4. Next, click on the Update button to reflect the changes on your webpage:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FGhDYAulajXDsbD8bZHpm%2Fimage.png?alt=media&#x26;token=c79059a4-b2a4-421a-b364-f45ca99c891b" alt=""><figcaption></figcaption></figure>

5. Here is the result, calculator pasted on a webpage successfully:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FOjkDB9CXQ8h0EHDjSiFN%2Fimage.png?alt=media&#x26;token=5e863baa-4ea4-49e1-8e4d-42dae91b9d43" alt=""><figcaption></figcaption></figure>

### Add Calculator with Gutenberg

You can also use the Cost Calculator's special block for WordPress Default editor - Gutenberg.

1. Create a new page or edit any existing page using Gutenberg. It can be done just by following **WP Dashboard > Pages > All Pages Add New/Edit:**

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FVpOihlvdUUqCyYcl59tT%2Fimage.png?alt=media&#x26;token=44cb2887-500f-40cc-be62-4eda34ad1ea1" alt=""><figcaption></figcaption></figure>

2. Click on one of the :heavy\_plus\_sign: **plus** signs:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F6X1WXh2l96rX1tD32wvQ%2Fimage.png?alt=media&#x26;token=83189bcf-dddb-4361-8be6-71340a2d8a1b" alt=""><figcaption></figcaption></figure>

3. Search for **Cost Calculator Builder** and click on it:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FdCEOGiShHAVGP2dKBh0R%2Fimage.png?alt=media&#x26;token=71a984b7-1a4a-4f50-b884-36fd7bc3579b" alt=""><figcaption></figcaption></figure>

4. Choose the desired calculator from the dropdown list in the inserted block:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F69hJW6MekXIqiM4JnnlU%2Fimage.png?alt=media&#x26;token=fa615dc6-b168-4363-89c5-09aea1bcb78f" alt=""><figcaption></figcaption></figure>

5. Click on the **Publish** or **Update** buttons to save the changes:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FEAxZHqrelwh2tK9DB0LL%2Fimage.png?alt=media&#x26;token=85cd8bdf-e1a1-4d57-a643-b2fd490976ca" alt=""><figcaption></figcaption></figure>

6. Here is the result of our insertion:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FdmRw5WbAvmLfdRAjwAcC%2Fimage.png?alt=media&#x26;token=08f7527a-4d6e-4321-a56f-f92c4effda66" alt=""><figcaption></figcaption></figure>
