How and where to put Jquery into a fully PHP page?

For Optimizing the performance of a webpage it’s always recommended to put the Javascript file to your footer.

So load your script files in your footer file.

In wordpress you’ve a footer.php

Change

<script type="text/javascript" src="https://stackoverflow.com/questions/27962150/<?php bloginfo("template_directory');?>/javascript/jquery.pajinate.js"></script>   

TO

<script type="text/javascript" src="https://stackoverflow.com/questions/27962150/<?php echo echo get_template_directory(); ?>/javascript/jquery.pajinate.js"></script> 

Leave a Comment