Site logo

Archived topic

pasting scripts in either the header or the footer

5 replies · Started by Christopher on December 2, 2020

Viewing posts 1–6 of 6

How can I paste scripts in either the header or the footer?

Does this look right?

add_action(wp_head);
function header scripts() { ?> 
<script>  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-88195641-1', 'auto');
  ga('send', 'pageview');

</script>
<meta name="google-site-verification" content="--kwPHU7AAG6MYTB3OPHUD5o0kI19C_1mqmfI87vNQ0" 

/>
<p>
I help podcasters, trainers, and speakers produce and publish great spoken word audio 

without spending hours on editing.
<p>
<img tabindex="-1" id="longdesc-return-55189" longdesc="https://wright-media.com?

longdesc=55189&referrer=55188" src="https://www.wright-media.com/wp-

content/uploads/2018/02/28000767_10156304987741155_977988228_n-300x300.jpg" 

alt="Christopher's logo" width="300" height="300" class="aligncenter size-medium wp-image-

55189" />

<?php

That link doesn't work.

Sorry - updated above.

This archived topic is closed to new replies.