12% off of LTD using this coupon: TWELVEPERCENTOFF. Promo ends on 2 Dec midnight UTC.
Published on Jun 9, 2022

Comment Reply Script in Oxygen

Sridhar Katakam

Unlike block WordPress themes, Oxygen does not load the JavaScript needed for threaded comments and inline replies out of the box.

Here’s how we can load this comment reply script in Oxygen.

Install and activate WPCodeBox.

Add a new snippet.

Title: The Comment Reply Script

Code:

<?php 

wp_enqueue_script( 'comment-reply' );

Where to run the snippet: custom

<?php 

! is_admin() && is_singular() && comments_open() && get_option( 'thread_comments' );

Add this CSS:

textarea#comment {
	width: 100%;
}

.comment-respond small {
	margin: 0 .25em;
}

Before:

After:

Reference

https://stackoverflow.com/a/28002180/778809

tagschevron-leftchevron-rightchainangle-rightangle-upangle-downfolder-omagnifiercrossmenuchevron-down