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
    CommentedFeb 10, 2011 at 1:31

1 Answer 1

2

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

    Start asking to get answers

    Find the answer to your question by asking.

    Ask question

    Explore related questions

    See similar questions with these tags.