# How to enable Color Comparison on product page?

The "**Color Comparison**" block displays a trigger button that opens a popup modal allowing customers to visually compare different color variants of a product side by side.&#x20;

The block only appears when the product has multiple color options defined in the theme's swatch settings. It supports typography customization for the trigger button and custom padding.

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

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

## How to enable Color Comparison on product page?

* From your Shopify admin, go to **Online Store** -> **Themes**.
* Find the theme that you want to edit, and then click **Customize**.
* Choose **Products** from the dropdown window.
* Click **Product information** -> add **Perks** block (if not already added).

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

* By default, the Block Perk will be added to 3 corresponding functional blocks (Size chart, Color Comparison, Ask An  Expert). You can enable or disable them at will by hiding them if you don't want to use them.

  (In this example, we are setting up **Color Comparison**)

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

### Color Comparison Block - Settings Guide

| Setting            | Type   | Description                                                                |
| ------------------ | ------ | -------------------------------------------------------------------------- |
| **Text**           | text   | Text content displayed on the popup trigger button                         |
| **Preset**         | select | Typography preset (Default, Paragraph, H1-H6, Custom)                      |
| **Font**           | select | Font family (Body, Subheading, Heading) — Visible when Preset is Custom    |
| **Size**           | select | Font size (from 10px to 120px) — Visible when Preset is Custom             |
| **Line Height**    | select | Line height (Tight, Normal, Loose) — Visible when Preset is Custom         |
| **Letter Spacing** | select | Letter spacing (Tight, Normal, Loose) — Visible when Preset is Custom      |
| **Case**           | select | Text case (Default, Uppercase, Capitalize) — Visible when Preset is Custom |
| **Wrap**           | select | Text wrap style (Pretty, Balance, None) — Visible when Preset is Custom    |
| **Color**          | select | Text color (Text, Heading, Link) — Visible when Preset is not RTE          |
| **Top**            | range  | Top padding (0-100px)                                                      |
| **Bottom**         | range  | Bottom padding (0-100px)                                                   |
| **Left**           | range  | Left padding (0-100px)                                                     |
| **Right**          | range  | Right padding (0-100px)                                                    |


---

# 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://halosoft.gitbook.io/ella-7-documentation/faq-and-troubleshooting/how-to-enable-color-comparison-on-product-page.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.
