> For the complete documentation index, see [llms.txt](https://halosoft.gitbook.io/ella-7-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://halosoft.gitbook.io/ella-7-documentation/faq/how-to-enable-color-comparison-on-product-page.md).

# 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)                                                    |
