Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

include comment reply javascript file on singular pages (for threaded…

… comments)
  • Loading branch information...
commit 27ef4248171425d40555dd7cb9c23c5454c2b481 1 parent c4ab726
@gabrielmansour authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 functions.php
View
6 functions.php
@@ -285,4 +285,10 @@ function sandbox_widgets_init() {
add_filter( 'archive_meta', 'wpautop' );
// Remember: the Sandbox is for play.
+
+// comment threading javascript
+function include_comment_reply_js_tag() {
+ if ( is_singular() ) wp_enqueue_script('comment-reply');
+}
+add_action('wp_head', 'include_comment_reply_js_tag', 1);
?>
Please sign in to comment.
Something went wrong with that request. Please try again.