WordPress.org

Support

Support » How-To and Troubleshooting » Put javascript on any page, exclude a homepage?

Put javascript on any page, exclude a homepage?

  • Hi, I want javascript to show on any page except of the homepage.
    What should I use?

    I thought excluding the homepage with <?php if(!(is_home)) { ?> it would work but it also NOT showing the script on other pages.

    How to separate this two things:

    1) show javascript on any page;
    2) not show javasctipt on a homepage?

    Thanks

    P.S. I installed the wordpress in a subdirectory if it matters.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Put javascript on any page, exclude a homepage?’ is closed to new replies.