# Button

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FLHXYcbeqPKUS6s7D60Gh%2Fimage.png?alt=media&#x26;token=c9ad743b-d90b-4b89-ba9e-9e91f1cd92d6" alt=""><figcaption></figcaption></figure>

Buttons are essential elements for guiding users through your site and encouraging actions such as buying a product, signing up for a newsletter, or navigating between pages.&#x20;

Foxify makes it simple to add, customize, and style buttons to suit your store's look and functionality.

## How to add a Button

{% hint style="success" %}
Steps:

1. In the FoxStudio editor, on the left Sidebar > Click **Add elements**, or press **E**.
2. Select **Buttons.**
3. Drag the button onto your canvas.
   {% endhint %}

## How to edit a Button

Once you’ve added the button, the next step is to edit its text to match your desired action.

{% hint style="success" %}
**Steps:**

1. **Select** the relevant button element in the editor.
2. Use the toolbar above the selected button element to quickly edit it.&#x20;

All the formatting tools below can be found in the right-hand side Inspector panel.
{% endhint %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FbP4fhAUYXDwK6UXUSN55%2Fimage.png?alt=media&#x26;token=f319450b-b3da-48a6-9d12-c5e10e4edd0b" alt=""><figcaption></figcaption></figure>

### Button label and Click action

Insert your **Button label** and set the **Click action** of it.&#x20;

**Click action** includes:

* Open link: Insert a page URL or select a Shopify page to open the link when clicked.
* Send email: Enter the email address to let customers send an email when clicked.&#x20;
* Call phone: Enter your phone number.
* Jump to anchor: Insert the section ID to jump to that specific section when clicked. See more: [create-an-anchor-link](https://docs.foxecom.com/foxify-app/faqs-and-troubleshooting/faqs/create-an-anchor-link "mention")
* Open pop-up: Insert the pop-up content to open a pop-up when clicked.
* Copy text: When the button is clicked, a specific piece of text will be automatically copied to the user's clipboard.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FZo0LXHApcIL4jqh2kM3c%2Fimage.png?alt=media&#x26;token=baee87f8-223a-4578-9f27-e67b37ade23b" alt=""><figcaption></figcaption></figure>

You can add an icon to your button.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FsR4y4ADvUFuNlFW6XjhR%2F2024-09-1215-34-36-ezgif.com-video-to-gif-converter.gif?alt=media&#x26;token=3be4e60e-96f7-48b3-9ff0-636f273469f6" alt=""><figcaption></figcaption></figure>

### Tracking events

Tracking button interactions can provide valuable insights into your users' behavior. You can enable Google Analytics (GA) and Facebook Pixel tracking for button clicks.

{% hint style="success" %}
Steps:

1. **Enable Tracking Events**: Toggle the **Enable tracking events** option to ON.
2. **Configure GA Event**: Under **GA Event Name**, enter the name of the event you want to track (e.g., `button_click`).
3. **Facebook Pixel Event**: Select the relevant event from the dropdown list:

* **ViewContent**
* **AddToCart**
* **InitiateCheckout**
* **Purchase**
* **Lead**
* **CompleteRegistration**
* **Custom**: If you want to create a custom event, select **Custom** and name it (e.g., `BuyNowClick`).
  {% endhint %}

### Button State

Select the button state you want to update: **Normal**/ **Hover**.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FbD8IdMwgp2CmmuXeTU1p%2Fimage.png?alt=media&#x26;token=087788db-a68d-4541-8afb-e441a824d5c4" alt=""><figcaption></figcaption></figure>

### Button Style

Select your **pre-defined button styles** in the **Global styles** to apply to an existing text element.&#x20;

Select a Button style will override all custom styles made to the element.

See more: [global-styles](https://docs.foxecom.com/foxify-app/page-management/global-styles "mention")

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FGsqWZABS5lnIzyBTgXpL%2Fimage.png?alt=media&#x26;token=7bddb5cb-8dbc-40f5-9813-94c112083a07" alt=""><figcaption></figcaption></figure>

### Color Fill

Set the text color and background color of the buttons.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FWA5o7NYiNPmaVvuVbMJ7%2Fimage.png?alt=media&#x26;token=39756a24-4b5d-4ce1-a80a-dcfcef5ad012" alt=""><figcaption></figcaption></figure>

### Text Font, Spacing, and Styles

* **Font**: Choose from hundreds of fonts. You can also [upload your own fonts to Foxify](https://docs.foxecom.com/foxify-app/faqs-and-troubleshooting/faqs/add-custom-font).
* **Weight** and **Size**: Define the font weight and font size of the text.
* **Text case**: Click the icons to set the text's capitalization: **As typed** ![](https://d2x3xhvgiqkx42.cloudfront.net/12345678-1234-1234-1234-1234567890ab/651c25b0-2d60-43c8-addf-1df2fd575568/2024/08/14/cf835ac2-622c-4066-a95e-39e9ff1a7f38/c4f1d248-c718-427e-9db5-77369c22fb67.png), **Upper case** **AG**, **Title case** **Ag**, or **Lower case** **ag**.
* **Spacing:** Change the spacing between the lines and characters in the text box.&#x20;
* **Text style**: Normal/*Italic*.

  <figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FpbDbInqoAXtSuCxvzswy%2Fimage.png?alt=media&#x26;token=31291c18-81ac-4155-a962-39fe148720c8" 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.foxecom.com/foxify-app/foxstudio/add-and-edit-elements/button.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.
