{"id":3391,"date":"2023-02-08T18:15:27","date_gmt":"2023-02-08T18:15:27","guid":{"rendered":"https:\/\/obo.zoj.mybluehost.me\/uncategorized\/add-a-new-font-third-party\/"},"modified":"2025-01-31T13:00:38","modified_gmt":"2025-01-31T13:00:38","slug":"add-a-new-font-third-party","status":"publish","type":"post","link":"https:\/\/ioninteractive.com\/ionacademy\/add-a-new-font-third-party\/","title":{"rendered":"Add a New Font (Third Party)"},"content":{"rendered":"\n<div class=\"hs-callout-type-caution\" data-hs-callout-type=\"caution\">\n<p style=\"text-align: justify\">Please check the<strong>&nbsp;<a href=\"https:\/\/obo.zoj.mybluehost.me\/frameworks-micro-themes-develop-your-own\/\" rel=\"noopener\">Developer&#8217;s Guide<\/a><\/strong>&nbsp;in advance<\/p>\n<\/div>\n\n\n\n<p>This method assumes that you don&#8217;t have font files and are instead using a third party to host the fonts for you. Each third party should provide details for installing the font, but most will use a link reference or the @import rule. For a third party font using the link method, you should have a line of code that looks something like this Google Fonts example:<\/p>\n\n\n\n<p>&lt;link&nbsp;href=&#8217;\/\/fonts.googleapis.com\/css?family=Open+Sans&#8217;&nbsp;rel=&#8217;stylesheet&#8217;&nbsp;type=&#8217;text\/css&#8217;&gt;<\/p>\n\n\n\n<p>The @import rule method should look something like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">@import url(\/\/fonts.googleapis.com\/css?family=Open+Sans);<\/pre>\n\n\n\n<p><strong>If you&#8217;re not using a hosted font and instead have font files ready to upload, follow the steps outlined in the support post&nbsp;<a href=\"https:\/\/obo.zoj.mybluehost.me\/add-a-new-font-font-files\/\" rel=\"noopener\">here<\/a>.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Link Method<\/strong><\/h3>\n\n\n\n<p>First, click the Libraries tab and then select Frameworks to get to the Frameworks Library:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"307\" height=\"616\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2025\/01\/Screenshot_2-14.png\" alt=\"\" class=\"wp-image-7422\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_2-14.png 307w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_2-14-150x300.png 150w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>Click the &#8220;ion Framework 4&#8221; link (or the Framework you&#8217;d like to apply the font within):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"210\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2025\/01\/Screenshot_3-14-1024x210.png\" alt=\"\" class=\"wp-image-7423\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-14-1024x210.png 1024w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-14-300x61.png 300w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-14-768x157.png 768w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-14-1536x314.png 1536w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-14.png 1916w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>Click Themes to show all of the themes that exist in the Framework, the expand the Theme you wish to add the font to:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2023\/08\/3-Jan-08-2021-03-32-34-94-PM.jpeg\" alt=\"3-Jan-08-2021-03-32-34-94-PM\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>In the list of Theme files, open the file titled &#8220;webfonts.txt&#8221;. In this text file, you can paste in the link reference. Below is an example of links for both Google Fonts and FontAwesome:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2023\/08\/4-3.jpeg\" alt=\"4-3\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>You can now &#8220;Save and Close&#8221; the webfonts.txt file. To declare the font you&#8217;ve linked, click into the &#8220;theme.css&#8221; file to access the main style sheet. This is where you will declare the font. To use your new font, just add the font family CSS to the elements where you&#8217;d like that font family to be used:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">element {\nfont-family: 'MyWebFont', Fallback, sans-serif;\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">&nbsp;<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>@import Rule Method<\/strong><\/h3>\n\n\n\n<p>First, click the Libraries tab and then select Frameworks to get to the Frameworks Library:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"307\" height=\"616\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2025\/01\/Screenshot_2-15.png\" alt=\"\" class=\"wp-image-7424\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_2-15.png 307w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_2-15-150x300.png 150w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Click the &#8220;ion Framework 4&#8221; link (or the Framework you&#8217;d like to apply the font within):<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"210\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2025\/01\/Screenshot_3-15-1024x210.png\" alt=\"\" class=\"wp-image-7425\" srcset=\"https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-15-1024x210.png 1024w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-15-300x61.png 300w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-15-768x157.png 768w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-15-1536x314.png 1536w, https:\/\/ioninteractive.com\/ionacademy\/wp-content\/uploads\/2025\/01\/Screenshot_3-15.png 1916w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Click Themes to show all of the themes that exist in the Framework, the expand the Theme you wish to add the font to:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2023\/08\/8.jpeg\" alt=\"8\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>In the list of Theme files, open the file titled &#8220;theme.css&#8221;. This is where you will declare the font.<\/p>\n\n\n\n<p>Paste the @import rule to reference your font files, and be sure to place it above any CSS that may reference the fonts. Below is an example of an @import declaration:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/obo.zoj.mybluehost.me\/wp-content\/uploads\/2023\/08\/9-1.jpeg\" alt=\"9-1\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Notice in the screenshot above, the Open Sans font imported using the @import rule being referenced in the html CSS class. Just like this screenshot, you will want to add the font family CSS to the elements where you&#8217;d like that font family to be used as well:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">element {\nfont-family: 'MyWebFont', Fallback, sans-serif;\n}<\/pre>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>To add your fonts as Micro-Theme options, check out the Micro-Theme Developer&#8217;s Guide\u00a0<a href=\"https:\/\/obo.zoj.mybluehost.me\/frameworks-micro-themes-develop-your-own\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Please check the&nbsp;Developer&#8217;s Guide&nbsp;in advance This method assumes that you don&#8217;t have font files and are instead using a third party to host the fonts for you. Each third party should provide details for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5865,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","footnotes":""},"categories":[2030,7],"tags":[2171,2127,2157],"class_list":["post-3391","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ion-themes","category-the-themes","tag-custom-css","tag-ion-themes","tag-micro-themes"],"_links":{"self":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts\/3391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/comments?post=3391"}],"version-history":[{"count":4,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts\/3391\/revisions"}],"predecessor-version":[{"id":7426,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/posts\/3391\/revisions\/7426"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/media\/5865"}],"wp:attachment":[{"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/media?parent=3391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/categories?post=3391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioninteractive.com\/ionacademy\/wp-json\/wp\/v2\/tags?post=3391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}