Can you please tell me how to connect a third-party .css and .js file to a specific Wordpress page? I tried to embed the theme using

<?php function wpb_adding_scripts() { wp_register_script('coverflow', plugins_url('coverflow.js', __FILE__), array('jquery'),'1.1', true); wp_enqueue_script('coverflow'); } add_action( 'wp_enqueue_scripts', 'wpb_adding_scripts' ); ?> 

in functions.php topics

but after the change I get 500 Internal Server Error

    2 answers 2

     <?php if (is_front_page() === true): ?> <script src="http://"></script> <?php endif; ?> 

    Paste into header template. is_front_page() means code execution only on the home page. Substitute any other function.

      Pay attention to the conditional tag is_page () WP 1.5

      Checks whether the "permanent page" page is displayed. You can specify an ID, label, or page title to verify. Conditional tag

      Returns true/false . true if the page type is displayed: permanent page and false if any other type of page is displayed.

       if( is_page( $page ) ){ //код }