Fonts: Add Gotham Bold to your theme

In this tutorial, we will go through the steps of adding a free font, Gotham Bold which is not included in the theme.


Download Gotham Bold font

This font is available from external font repositories like Fonts Geek:

The downloaded font will be in a .zip archive and contain a TrueType version of Gotham Bold. Unzip the font file and have it ready for conversion in the next step. 


Convert the font

Use a font conversion service like to create web ready fonts:

Steps to convert:

(1) Upload the unzipped Gotham Bold Regular.ttf font file.

(2) Choose all options except TTF (the file is already in TTF format).

(3) Finally, use the convert button and download the new converted fonts.

Use the Download link and save the converted fonts:


Skip steps 1 and 2, download all font files from Dropbox

Steps 1 and 2 are helpful if you're using a different font. For the rest of this tutorial, we'll use these already converted font files for Gotham Bold.

Use the Download button and choose Direct download:

This will download a folder to your computer called GothamBold.


Add font files to your theme

Open the Code Editor. If Pipeline is your published theme, use this link:

Otherwise, choose Edit Code from the Actions link for Pipeline on your main list of themes.

In the Assets folder, choose Add a new asset:

One by one, upload each of the 4 font files from the GothamBold folder from your computer:

Be sure to upload all 4 files.


Edit assets/styles.scss.liquid

Open your assets/styles.scss file. If Pipeline is your published theme, use this link:

At the very bottom of the file, on a new line paste the following code:

/* -- code to use Gotham font-family in theme -- */
@font-face {
  font-family: 'Gotham';
  src: 	url('{{ "Gotham-Bold.eot" | asset_url }}');
  src: 	url('{{ "Gotham-Bold.eot" | asset_url }}#iefix') format("embedded-opentype"),
      	url('{{ "GothamBold.woff" | asset_url }}') format("woff"),
	url('{{ "GothamBold.woff2" | asset_url }}') format("woff2"),
     	url('{{ "GothamBold.svg" | asset_url }}#GothamBold') format("svg");
        font-weight: bold;
        font-style: normal;
/* - end - */

Modify the $titleFontStack

Still in your assets/styles.scss.liquid file, use the Find feature on the right code side (Command-F on Mac or Control-F in Windows) and search for (1):


Around line 266, find this section (2):

Once you've found the correct section, replace these 3 lines:

With one of the following code options:

Option 1: Use Gotham Bold for titles only

// $titleFontStack: {{title-FontStack}};
$bodyFontStack: {{body-FontStack}};
$accentFontStack: {{accent-FontStack}};

$titleFontStack: 'Gotham', sans-serif;
// $bodyFontStack: 'Gotham', sans-serif;
// $accentFontStack: 'Gotham', sans-serif;

Option 2: Use Gotham Bold for titles and body text

// $titleFontStack: {{title-FontStack}};
// $bodyFontStack: {{body-FontStack}};
$accentFontStack: {{accent-FontStack}};

$titleFontStack: 'Gotham', sans-serif;
$bodyFontStack: 'Gotham', sans-serif;
// $accentFontStack: 'Gotham', sans-serif;

Option 3: Use Gotham Bold for all fonts

// $titleFontStack: {{title-FontStack}};
// $bodyFontStack: {{body-FontStack}};
// $accentFontStack: {{accent-FontStack}};

$titleFontStack: 'Gotham', sans-serif;
$bodyFontStack: 'Gotham', sans-serif;
$accentFontStack: 'Gotham', sans-serif;

Example of using Option 1:

After pasting the code from one of these options to replace the theme's 3 lines, use the  Save button at the top-right to save the changes:

Example before with Questrial heading:

Example after with Gotham Bold heading:


The font-family is: "Gotham" (not GothamBold).

In the Theme Editor, you won't see Gotham Bold or Gotham in the drop-down list. The only want to change the font is in code as it overrides these settings:

To revert back to the original drop-down options and stop using Gotham Bold, you can use uncomment the original lines and comment out the Gotham Bold code:

$titleFontStack: {{title-FontStack}};
$bodyFontStack: {{body-FontStack}};
$accentFontStack: {{accent-FontStack}};

// $titleFontStack: 'Gotham', sans-serif;
// $bodyFontStack: 'Gotham', sans-serif;
// $accentFontStack: 'Gotham', sans-serif;

The lines that start with "// " are commented out. Those lines will not be executed or the code is ignored.

Still need help? Contact Us Contact Us