How can I enqueue comment-reply script only on certain page?
Question
I’m trying to enqueue comment-reply.js script only on a certain page but something is wrong with my code. Can someone hint things here?
<?php if ( is_singular('1740') && (!is_home() || !is_front_page() || !is_single()) && comments_open() && get_option('thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?>
0
2 years
2020-12-18T18:10:36-05:00
2020-12-18T18:10:36-05:00 0 Answers
6 views
0
Leave an answer