# Additional Classes

The **Additional Classes** setting in the Cost Calculator Builder allows users to customize the appearance of elements by adding **CSS classes.** This feature provides flexibility for users to style elements according to their website’s design.

<details>

<summary>What Are CSS Classes?</summary>

**CSS (Cascading Style Sheets)** classes are used to apply specific styles to HTML elements. By assigning a CSS class to an element, you can control its appearance, such as its color, size, or position, using the class name in your CSS stylesheet.

</details>

Each element within the Cost Calculator Builder has a field labeled **Additional Classes in its settings**. Users can input the names of their custom CSS classes into this field to apply specific styles to those elements.

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F67jasB1YsN9cLbS3dF1k%2Fimage.png?alt=media&#x26;token=700c975b-917a-4ee9-b120-d617bef06926" alt=""><figcaption><p>Additional Classes</p></figcaption></figure>

{% hint style="warning" %}
But these classes should be defined in your WordPress beforehand.
{% endhint %}

## How to define Additional Classes on WordPress?

1. Follow **WordPress Dashboard > Appearence > Themes** and click on **Customize**:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F02nFwl38ssSoDS7mAahy%2Fimage.png?alt=media&#x26;token=c208b9b8-6d0e-45c2-b186-75fd374a883a" alt=""><figcaption></figcaption></figure>

2. Open **Additional CSS** tab:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F7wF7n5evpzpQ1BmIvfcw%2Fimage.png?alt=media&#x26;token=4a144af1-3b05-4057-ba48-0a254daa83de" alt=""><figcaption></figcaption></figure>

3. Define your CSS classes to the designated area and Publish them:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FHF5B6n7dHWqlOLzVCjy0%2Fimage.png?alt=media&#x26;token=dfe0e7e6-8003-408c-a351-efabeedd0b00" alt=""><figcaption></figcaption></figure>

Here is the example of the CSS classes that hides buttons and changes the color of the title

```css
.custom-style-for-quantity .calc-item__title span {
  color: red;
}

.custom-style-for-quantity .input-number-counter {
  display: none !important;
}
```

## Adding Additional CSS in Cost Calculator

As an example let's add the custom CSS class to some quantity field.

1. Open the settings of the quantity field, enter the name of the CSS class without dot (`.`) beginning:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2Ft3l64CvWBNarSqDrhKhn%2Fimage.png?alt=media&#x26;token=87f551bc-1d0b-4674-946c-375213008d00" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you want to add **multiple** CSS classes, separate them with **space!**
{% endhint %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FBIdEIHaOPT4HjhIIZC6v%2Fimage.png?alt=media&#x26;token=aebca6a7-32e0-4dbf-9d3e-c0e7683253a9" alt=""><figcaption><p>Two CSS classes</p></figcaption></figure>

2. Here is the result of our CSS:

{% tabs %}
{% tab title="BEFORE" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FhX6Xy7DCe4BSpq80nqUV%2Fimage.png?alt=media&#x26;token=105072fa-8a40-4bbd-94ca-6cfb644de453" alt=""><figcaption><p>Title black, up-down buttons visible</p></figcaption></figure>
{% endtab %}

{% tab title="AFTER" %}

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2F6v6BRWLlgrGjLLJYonnz%2Fimage.png?alt=media&#x26;token=2992373f-9f92-4a6e-a83c-ea0a915460f8" alt=""><figcaption><p>Title red, up-down buttons hidden</p></figcaption></figure>
{% endtab %}
{% endtabs %}

You can check the CSS classes via Developer Tools on your browser:

<figure><img src="https://834137925-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MDTO7zmTA5-HpvK8JDA%2Fuploads%2FZQq3QID1WjEUdMJufZaE%2Fimage.png?alt=media&#x26;token=5ddb1c27-571a-4e3d-91cc-fc5af2d6798f" alt=""><figcaption></figcaption></figure>
