Return to Snippet

Revision: 57819
at June 11, 2012 14:48 by planetabhi


Initial Code
<?php if(is_front_page()):?>
<?php /*?>your java script code<?php  */?>
<script type=”text/javascipt” src=”yourfile.js”></script>
<?php endif; ?>

Initial URL

                                

Initial Description
In your header.php file:

Initial Title
Load specific JavaScript files in header.php in the homepage only? in WordPress

Initial Tags
javascript, php, wordpress

Initial Language
PHP