# Get font url and use in custom html

**URL:** <https://forum.wixstudio.com/t/get-font-url-and-use-in-custom-html/6590>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [January 13, 2023, 9:42am UTC](https://forum.wixstudio.com/t/get-font-url-and-use-in-custom-html/6590 "2023-01-13T09:42:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickoertel](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nickoertel](https://forum.wixstudio.com/u/nickoertel)\
**Post date:** [January 13, 2023, 9:42am UTC](https://forum.wixstudio.com/t/get-font-url-and-use-in-custom-html/6590/1 "2023-01-13T09:42:11Z")

</div>

Hey,

I want to include a custom font in a custom html element.  
Is there any way I can get the font url, where my font is hosted, like I can do it for images (for example [https://static.wixstatic.com/media/](https://static.wixstatic.com/media/)…~mv2.jpg) ?

Another way would be to link the font over fonts.googleapis.com, but that’s due the privacy policy not possible.

---

<div class="post-metadata">

**Author:** ![nickoertel](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nickoertel](https://forum.wixstudio.com/u/nickoertel)\
**Post date:** [January 13, 2023, 11:32am UTC](https://forum.wixstudio.com/t/get-font-url-and-use-in-custom-html/6590/2 "2023-01-13T11:32:01Z")

</div>

Okay, I could solve it, so here’s a documentation how you can get the urls:

1. 

Upload your font in WIX custom fonts and use it for any text element in the editor, then publish the site (we want WIX to import your font to the live site from the server).

1. 

Go to your live site and open the console and go to elements, here you can see the full HTML of your site. Then search (srg + f) for “@font-face”.

1. 

There can be multiple result, for most it’s a big yellow block like in this example:

 ![](https://us1.discourse-cdn.com/wix/original/3X/6/9/694fffb5053bda2b934ccd3a5c4991d683738cab.jpeg)

Copy the style Tag and paste it in a code editor.

1. 

In the code editor you can search for your font:

 ![](https://us1.discourse-cdn.com/wix/original/3X/0/f/0f8c56ebebc9f3ed88eed62e61b5da8fe509482f.jpeg)

Just copy the url and replace //static… with [https://static](https://static)…

For some reasons WIX imports your font like 20 times with 10 different links. I really don’t know why, but if your url isn’t working, you should try a different url.

1. 

Now you have the url of your font and you can use it in your HTML.

Hope this guide was usefull 😃

---

<div class="post-metadata">

**Author:** ![kovandras91](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kovandras91/32/31816_2.png) [@kovandras91](https://forum.wixstudio.com/u/kovandras91)\
**Post date:** [July 12, 2023, 5:02pm UTC](https://forum.wixstudio.com/t/get-font-url-and-use-in-custom-html/6590/3 "2023-07-12T17:02:46Z")

</div>

This does not work, I tried searching the entire source of my site for font-face that has anything to do with my fonts and found nothing. Instead any text you add to your site with the custom font you uploaded will have something like this in the font-family property: wfont\_7035ab\_7610c9580ddb4dbea62394d6ab1d59ee,wf\_7610c9580ddb4dbea62394d6a,orig\_pt\_sans\_narrow\_bold

This cannot be used in custom elements.

---

<div class="post-metadata">

**Author:** ![Zahrafigueroa](https://avatars.discourse-cdn.com/v4/letter/z/c67d28/32.png) [@Zahrafigueroa](https://forum.wixstudio.com/u/Zahrafigueroa)\
**Post date:** [September 3, 2026, 2:41pm UTC](https://forum.wixstudio.com/t/get-font-url-and-use-in-custom-html/6590/4 "2026-09-03T14:41:25Z")

</div>

I’m not even sure if it’s possible to add it. It’s also due to privacy policies.
