# Add Wishlist Button to Product Page

### Installation Options

#### **Option 1: Using App Blocks (Recommended for Compatible Themes)**

If your theme supports Shopify's app blocks, this is the most straightforward and recommended method. App blocks allow for easy integration and management of app-related functionalities directly within the theme customizer.

For detailed instructions on adding app blocks to your product page, please refer to our dedicated guide:

[Add App Blocks to Your Theme - Add Button to Product Page](https://wishlist.nativeappco.com/install-and-setup/theme-setup/add-app-blocks-to-your-theme#add-app-block-to-product-template-s)

#### **Option 2: Manual HTML Element Integration**

Consider manual setup for the following scenarios:

* **Adding to older themes that don't support app blocks:** For themes that predate or do not fully support Shopify's app block functionality.
* **You prefer to add the code to your theme yourself:** For developers or users who want direct control over their theme's code.

You can manually add the "Add to Wishlist" button anywhere on your site by inserting the following HTML element directly into your theme's Liquid files.

This method provides full flexibility in terms of button placement.

**HTML:**

{% code overflow="wrap" %}

```html
<wishlist-button-pdp role="button" class="fish-wishlist-button--pdp fish-wishlist-button--secondary button" data-variant-id="{{ product.selected_or_first_available_variant.id }}" data-preselected-id="{{ product.selected_or_first_available_variant.id }}" data-is-added="false">
</wishlist-button-pdp>
```

{% endcode %}

**Customizing the Text:**

Regardless of whether you are using App Blocks or manual setup, you can modify the text for your wishlist button in [Language Settings](https://admin.shopify.com/store/fish-wishlist/apps/fish-wishlist/app/languages). If you don't want to display any text, you can remove the text from this page.

<figure><img src="/files/zZjla0binu0MCr9Eq35U" 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://wishlist.nativeappco.com/install-and-setup/theme-setup/add-wishlist-button-to-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.
