Reply to Comments in Oxygen with Rank Math

If you're using Oxygen with Rank Math (SEO Pluging). You may notice a compatibility issue with reply to comments in Oxygen based sites, running RM. The issue is that with Rank Math enabled on an Oxygen site, it disables the reply to comment function.

So you end up with Reply button linking to the comment itself, rather than to Comment Form, where you can post a reply.

There's a two-step easy fix for this.

 

reply to comments in oxygen

Step One

Install and activate the Code Snippet plugin, or use your own custom functions plugin.

 

Step Two

Add this code snippet (based on the Rank Math's own API)
To disable the Rank Math feature that removes `?replytocom`

add_filter( 'rank_math/frontend/remove_reply_to_com', '__return_false');

Done.
Now users should be able to reply to comments in Oxygen website, even when while running Rank Math plugin.

5/5 (1 Review)

Leave a Reply

Your email address will not be published. Required fields are marked *