Title: Using different JavaScript on home page
Last modified: August 30, 2016

---

# Using different JavaScript on home page

 *  [TSemmes](https://wordpress.org/support/users/tsemmes/)
 * (@tsemmes)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/using-different-javascript-on-home-page/)
 * I wanted a different look for a navbar on the home page and I was able to tweak
   the Javascript file that controlled it to get the look that I wanted. But being
   a PHP and JS newbie, I am not sure how to have to revised JS file work on the
   home page and then revert to the original file on other pages.
    I am thinking
   that I could add some kind of “if/else” something to the functions.php file but
   not really sure how to get started. Could anyone point me in the right direction?

The topic ‘Using different JavaScript on home page’ is closed to new replies.

## Tags

 * [home](https://wordpress.org/support/topic-tag/home/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 0 replies
 * 1 participant
 * Last reply from: [TSemmes](https://wordpress.org/support/users/tsemmes/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/using-different-javascript-on-home-page/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
