# How to add custom fonts

### Uploading your font files

In order to use your own custom fonts, you will first need to upload the font files. To do this, you'll need to head on over to your store's Files folder.

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

You can copy the file links for later.

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

### Defining the new font families

Now that you have the files uploaded, you can head on over to the '***css-variables.liquid***' file located in the **snippets** folder.

Here you need to scroll all the way to the bottom and add a bit of code **before** the closing style tag (' ***{%- endstyle -%}*** '):

<figure><img src="/files/4Fz38g0AWPJxzjhvubUK" alt=""><figcaption></figcaption></figure>

This is the place where you need to add this code snippet:

```
/* -- code to use Gotham font-family in theme -- */
@font-face {
  font-family: 'Gotham';
  src: url('WOFF2 link from files placeholder') format("woff2");
  font-weight: normal;
  font-style: normal;
} /* - end - */
```

In this code snippet, you can start by replacing the font family name ('**Gotham**') with your own font name.\
\
Next, add the file link you copied in the 'url()' field, replacing the placeholder text. If you're using a different format, make sure to change that too.

{% hint style="success" %}
If you have to upload more than one font, you need to declare each one individually and use multiple instances of this code snippet.
{% endhint %}

### Assigning your custom fonts

Finally, all we need to do is assign the new fonts to be used. There are a few global font variables that control the fonts for the **headings, body text, buttons, and navigation menu**.

You can easily find all of them by using `command + f` (or `ctrl + f` on Windows) and searching for '***font-stack***':

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

All you need to do here is to replace the first value assigned to the variables you're looking to change.

We'll continue to use '**Gotham**' in our example to keep it consistent, but this is also a place where you input your **custom font name**:

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

That's it, you're all set and ready to go. Just don't forget to save the changes.


---

# 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://palo-alto.presidiocreative.com/faq/frequently-asked-questions/how-to-add-custom-fonts.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.
