Getting Console error loading typekit fonts

New Here ,
Dec 18, 2019

Copy link to clipboard

Copied

Hello Adobe,  I am getting console error from the Adode Typekit CSS file that is loaded.  The @import statement at the top of the Adode CSS that is Adode servers is loading throwing this error. Can someone please help me correct this issue.  I am using WordPress 5.3 on Pantheon hosting.  I have enqueue my files correctly. 

 

/*==============  LOAD AND USE ADOBE TYPEKIT  ==================*/
function theme_typekit() {
    /* Adobe Proxima nova Fonts */
    wp_enqueue_script( 'theme_typekit', 'https://use.typekit.net/myidnumber.css');
}
add_action( 'wp_enqueue_scripts', 'theme_typekit' );

function theme_typekit_inline() {
  if ( wp_script_is( 'theme_typekit', 'done' ) ) { ?>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<?php }
}
add_action( 'wp_head', 'theme_typekit_inline' );
 
Thanks!!!
 
screen shots of the issue: 
typekit1.JPGtypekit2.JPG
TOPICS
Font rendering, Performance, Product issue

Views

224

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Getting Console error loading typekit fonts

New Here ,
Dec 18, 2019

Copy link to clipboard

Copied

Hello Adobe,  I am getting console error from the Adode Typekit CSS file that is loaded.  The @import statement at the top of the Adode CSS that is Adode servers is loading throwing this error. Can someone please help me correct this issue.  I am using WordPress 5.3 on Pantheon hosting.  I have enqueue my files correctly. 

 

/*==============  LOAD AND USE ADOBE TYPEKIT  ==================*/
function theme_typekit() {
    /* Adobe Proxima nova Fonts */
    wp_enqueue_script( 'theme_typekit', 'https://use.typekit.net/myidnumber.css');
}
add_action( 'wp_enqueue_scripts', 'theme_typekit' );

function theme_typekit_inline() {
  if ( wp_script_is( 'theme_typekit', 'done' ) ) { ?>
    <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<?php }
}
add_action( 'wp_head', 'theme_typekit_inline' );
 
Thanks!!!
 
screen shots of the issue: 
typekit1.JPGtypekit2.JPG
TOPICS
Font rendering, Performance, Product issue

Views

225

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 18, 2019 0
Adobe Employee ,
Dec 27, 2019

Copy link to clipboard

Copied

Hi there,

 

We are sorry to hear you are having trouble using Adobe Fonts. We would suggest getting in touch with our support team using this link: https://helpx.adobe.com/in/contact.html for real time assistance.

 

Let us know if that helps.

 

Thanks,

Harshika

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 27, 2019 0