-
AuthorPosts
-
March 19, 2014 at 5:46 pm #24626
I know that to add scripts in the Customizer you take out the <script> tags.
How does that work when the code is like this:
<script src="//static.getclicky.com/js" type="text/javascript"></script> <script type="text/javascript">try{ clicky.init(100718890); }catch(e){}</script> <noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/100718890ns.gif" /></p></noscript>
March 20, 2014 at 3:30 pm #24991Hey Armen,
Thanks for writing in! You will first need to setup a child theme then add the following code to the functions.php file of that theme:
function my_custom_head_output() { ?> ...code here... <?php } add_action( 'wp_head', 'my_custom_head_output', 99999 ); function my_custom_footer_output() { ?> ...code here... <?php } add_action( 'wp_footer', 'my_custom_footer_output', 99999 );
You can replace the sections that say …code here… with the snippets of code provided to you. Depending on if you need it in the <head> or near the closing <body> tag, you’ll want to use one or the other above.
Thanks!
March 21, 2014 at 5:49 am #25180Top job, Kory.
Many thanks again!
March 21, 2014 at 8:22 am #25226You’re welcome!
-
AuthorPosts