# 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="/files/6HFyTE7gNw47nM9WjL04" 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="/files/zl7pmglrpkEUVnGrVwby" alt=""><figcaption></figcaption></figure>

2. Open **Additional CSS** tab:

<figure><img src="/files/QcfITMbNRkhL7JqylXlW" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/MpU5J6UUlDvkUjpA5N8B" 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="/files/Kwm3DCy3BSBSmTaDNles" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/Suv60bWvt1XjDmCidduw" alt=""><figcaption><p>Two CSS classes</p></figcaption></figure>

2. Here is the result of our CSS:

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

<figure><img src="/files/FbgpP8NeoFHoq1l2ITnO" alt=""><figcaption><p>Title black, up-down buttons visible</p></figcaption></figure>
{% endtab %}

{% tab title="AFTER" %}

<figure><img src="/files/xiWzsuSZHZBk1yBKYrWp" 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="/files/0y5CSH8LurfR0ToHd9OI" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stylemixthemes.com/cost-calculator-builder/plugin-features/additional-classes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
