0

All I want to do is basically this:

wp_register_script( 'jquery_zebra', get_bloginfo('stylesheet_directory') . '/library/scripts/jquery.zebra.js', array('jquery'));    
wp_register_style( 'css_zebra', get_bloginfo('stylesheet_directory') . '/library/styles/zebra.css' );
//enqueue scripts
wp_enqueue_script('jquery_zebra');
wp_enqueue_style('css_zebra');

But only on a certain template page. I don't care if this is in a plugin or my functions.php or in the template-page.php iteself.

1
  • How much do you know about Themes and PHP?
    – hakre
    Commented Feb 10, 2011 at 1:31

1 Answer 1

2

There is is_page_template() conditional tag to check for that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.