How can I enqueue comment-reply script only on certain page?
I think the conditional tag which is comments_open() is not required. That checks if the comments are allowed for that specific page or not. Try using the following code <?php if ( is_single(‘1740’) || ( !is_home() || !is_front_page() || !is_single() ) ) { wp_enqueue_script( ‘comment-reply’ ); } ?> comments_open() requires the post ID for the … Read more