Skip to main content
Participant
Dec 18, 2019 2:56 PM UTC
Question

Getting Console error loading typekit fonts

Hello Adobe,  I am getting console error from the Adode Typekit CSS file that is loaded.  The @1552174 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: 
This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Sep 29, 2022 11:45 AM UTC

I have the same problem. Can you tell me if and how it has been fixed?

 

Kind regards

Translate
Harshika Verma
Community Manager
Community Manager
Dec 27, 2019 9:51 PM UTC

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

Translate