Closed mfields closed 10 years ago
header.php line 16:
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
The comment-reply script should be enqueued in functions.php. Something like this works rather well during the wp_enqueue_scripts action:
comment-reply
wp_enqueue_scripts
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); }
This code will also ensure that comments are open.
Thanks. Update pushed. Leaving this ticket open though because I want to follow up and style the reply button better. I didn't have threaded comments activated in my dev sandbox for some reason.
header.php line 16:
The
comment-reply
script should be enqueued in functions.php. Something like this works rather well during thewp_enqueue_scripts
action:This code will also ensure that comments are open.