how to put js in function.php
-
Hello,
I used this code in the footer of my theme, to insert to “Hello World” in the div id=”content”<script type="text/javascript"> document.getElementById('content').innerHTML = '<span class="copyright">Hello world</span>'; </script>
So now, i’d like to put the code in the function.php
Please how to do that?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘how to put js in function.php’ is closed to new replies.