Created
December 11, 2018 14:19
-
-
Save akther80/6d26cc983183779e415d5a8f3d89eb75 to your computer and use it in GitHub Desktop.
WooCommerce - Add a script tag in body tag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tm_child_header_script () {?> | |
<script id = "mcjs">! function (c, h, i, m, p) {m = c.createElement (h), p = c.getElementsByTagName (h) [0], m.async = 1, m .src = i, p.parentNode.insertBefore (m, p)} (document, "script", "https://chimpstatic.com/mcjs-connected/js/users/0f3b24053a8c0b469280bc713/ff31f5cbe2b678ce98a565e10.js"); </ script> | |
<? php} | |
add_action ('wp_head', 'tm_child_header_script', 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment