• Resolved zeaks

    (@zeaks)


    I’m using this line in a twenty ten child theme, but want to be able to rename the theme and still have it direct to the proper directory.

    wp_enqueue_script('theme_options_slider', WP_CONTENT_URL.'/themes/child-theme/js/slider/jquery.nivo.slider.pack.js', array('jquery'));

    I know I’m supposed to use something like get_bloginfo('stylesheet_directory') but I can’t get it right.

Viewing 5 replies - 1 through 5 (of 5 total)
  • wp_enqueue_script('theme_options_slider',
    get_template_directory_uri() . '/js/slider/jquery.nivo.slider.pack.js',
    array('jquery')
    );
    Thread Starter zeaks

    (@zeaks)

    Thanks, this seems to be directing it to the Twenty Ten directory though, I’m using a child theme, is it possible to direct it to that instead?

    Try:

    wp_enqueue_script('theme_options_slider',
    get_stylesheet_directory_uri() . '/js/slider/jquery.nivo.slider.pack.js',
    array('jquery')
    );
    Thread Starter zeaks

    (@zeaks)

    Perfect, thanks alot

    No problem 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘content info vs stylesheet url’ is closed to new replies.