• I’m using the wp_register_script() and wp_enqueue_script() functions in my functions.php file to load some sliding image scripts.

    To save on http requests etc I only want them loaded on the home page.
    I tried sticking an if(is_home()){...} there but it doesn’t work.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Enqueue scripts on certain pages only’ is closed to new replies.