WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add JavaScript in <head> of index.php and all page?!? (3 posts)

  1. markval
    Member
    Posted 5 years ago #

    Hi all,

    After a bit of search I didn't find what I was looking for.

    How can I had a .js in the <head> </head> of my index page and all the others?

    I have read about wp_enqueue.

    Here http://codex.wordpress.org/Using_Javascript is my answer!

  2. Chandra M
    Member
    Posted 4 years ago #

    How do we put this only on the homepage? I tried is_home() but doesn't seem to work that way.. any ideas? Can't find any documentation about it as well...

  3. Chandra M
    Member
    Posted 4 years ago #

    I am trying to put javascripts from functions.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.