Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
How much do you know about Themes and PHP? –  hakre Feb 10 '11 at 1:31

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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