WordPress.org

Ready to get started?Download WordPress

Forums

"wp_register_script" how-to question?? (2 posts)

  1. raymng
    Member
    Posted 1 year ago #

    I need to add the following JS to the <head></head> of every page, but I don't know how to add the "data-cfasync="false" " by using "wp_register_script" or "wp_enqueue_scripts". Please help!!

    <script data-cfasync="false" type="text/javascript" src="http://use.typekit.com/YOUR-KIT-ID.js"></script>
    <script data-cfasync="false" type="text/javascript">try{Typekit.load();}catch(e){}</script>

    Thanks.

  2. birgire
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic