Title: JS script on index.php
Last modified: August 19, 2016

---

# JS script on index.php

 *  [vaib007](https://wordpress.org/support/users/vaib007/)
 * (@vaib007)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/js-script-on-indexphp/)
 * Hi , on my index.php i am using java script. Usually in html sites we call java
   script file in the header.
 * I am using this java script just for index.php. How to call .js file ?

Viewing 1 replies (of 1 total)

 *  [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * (@songdogtech)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/js-script-on-indexphp/#post-1237474)
 * <?php if (is_front_page()) { ?> JS here
    <?php } ?>

Viewing 1 replies (of 1 total)

The topic ‘JS script on index.php’ is closed to new replies.

## Tags

 * [java-script](https://wordpress.org/support/topic-tag/java-script/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Mark Ratledge](https://wordpress.org/support/users/songdogtech/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/js-script-on-indexphp/#post-1237474)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
