drkskwlkr

Insert script in WP head

Sep 27th, 2021 (edited)
1,037
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. add_action('wp_head', function() {?>
  3. <script src="https://kit.fontawesome.com/<?php esc_html( get_field( 'fontawesome_kit_code', 'options' ) ); ?>.js" crossorigin="anonymous"></script>
  4. <?php
  5. });
RAW Paste Data