How to Allow Your Users to Subscribe to Comments in WordPress

Do you want to allow your users to subscribe to comments in WordPress?

By subscribing to comments, users will get email alerts about any new replies. This can encourage discussion or even heated debates and get more engagement on your website.

In this article, we will show you how to allow users to subscribe to comments on your WordPress website.

How to allow users to subscribe to comments in WordPress

Why Let Users Subscribe to Comments in WordPress?

Allowing people to comment on your WordPress blog is a great way to get more engagement. However, most of the time, users will visit your website, leave a comment, and never return.

By allowing users to subscribe to comments, they will get email alerts whenever someone comments on the same post. This will remind them about their comment and bring them back to your website.

Comment subscription also allows people to follow comment threads that generate a lot of discussions or heated debates.

Sadly, WordPress doesn’t allow visitors to subscribe to comments by default. However, you can easily add this missing feature using a WordPress plugin.

That said, let’s look at how to allow users to subscribe to comments on your WordPress website.

Allow Users to Subscribe to Comments Using Thrive Comments

The easiest way to offer a comment subscription feature is by using the Thrive Comments plugin.

It is the best WordPress comments plugin on the market. Thrive Comments is part of the Thrive Themes suite of plugins and lets users subscribe to comments with a click of a button. Plus, it includes plenty of features to improve comment interaction, including upvote/downvote, comment badges, and more.

For more details, you can see our detailed Thrive Comments review.

First, you will need to visit the Thrive Themes website and sign up for an account.

ThriveThemes

After creating an account, you can head to the account dashboard.

From here, simply click the ‘Download and install the Thrive Product Manager plugin’ link.

Install Thrive Product Manager

Next, you will need to install the Thrive Product Manager plugin on your WordPress site. If you need help, then please see our guide on how to install a WordPress plugin.

Upon activation, you can go to the Product Manager option from your WordPress dashboard. Here, simply click the ‘Log into my account’ button.

Log into the Thrive Product Manager dashboard

After logging in to your account, you should see the Thrive Product Manager dashboard.

Simply navigate to the ‘Thrive Comments’ plugin, select it, and then click the ‘Install selected products’ button.

Install Thrive Comments

Once the plugin is installed, you will see a success message saying, ‘Ready to use’.

Next, you can click the ‘Go to the Thrive Themes Dashboard’ button.

View Thrive Comments success message

After that, you will see all your Thrive Themes plugins installed on your site.

Simply click on the ‘Thrive Comments’ button.

Go to Thrive Comments

Setting Up Comment Notifications in Thrive Comments

Next, you will see the Thrive Comments settings.

Go ahead and click on the ‘Notifications’ option.

Go to Thrive Comments notifications

After that, you will need to connect an email delivery service to send notifications to comment subscribers.

Simply click the ‘+ Add new’ button.

Add new comment notification

Next, you will need to select an email marketing service to connect with Thrive Comments.

Go ahead and click the ‘+ Add new Connection’ option.

Add new connection for comments

From here, you should see a dropdown menu with different email tools.

Simply click the dropdown menu and select the email delivery service you’d like to connect.

Select email marketing tool to connect

Thrive Comments will then ask you to enter the API key or API Token for your chosen tool.

You can find the key in your email marketing tool’s dashboard or account area. Do note that the steps to retrieve the API key may be different for each service, so we recommend taking a look at their documentation.

Enter email tool API

Once you connect the email delivery tool, you will see it as an active connection.

Thrive Comments also lets you customize the comment notification and post notification.

This allows you to edit the default notification messages users will receive when they leave a comment and someone replies to their comment or when a new comment or reply is added to the specific post.

Customize post and comment notifications

For instance, if you click the ‘Customize Comment Notification’ option, then you can edit the email subject line, content, and more.

There are also notification shortcodes that you can add to the email text, like the site title or comment author’s name.

Edit comment notification options

Similarly, if you click the ‘Customize Post Notification’ option, then you can edit the email that users will get when someone leaves a comment on the thread.

Here, the plugin lets you change the text of the email and use different shortcodes to include more details in the content.

Customize notification for new comments on thread

When you are done, simply save your settings by clicking on the ‘Save’ button.

Next, you can visit your WordPress website and scroll down to the comment section under any post or page. You will see the ‘Subscribe to comments’ option at the bottom.

View subscribe to comments

After setting up the plugin, it’s a good idea to subscribe to a comment thread to check that WordPress is sending the emails correctly. If you don’t get any email notifications, then just check out our guide on how to fix the WordPress not sending email issue.

Bonus Tips for Managing Comments in WordPress

Now that you’ve set up a comment subscription option on your site, you can take things one step further and learn more tricks for managing comments.

For instance, you can add Google reCAPTCHA to the comment form and filter spam. Users will have to click the checkbox indicating they are not a robot or select a set of images to pass the test.

New recaptcha

Besides that, you can also manage your comment email notifications. WordPress offers default settings to send you an email whenever someone posts a comment or a comment is held for moderation.

However, there are different WordPress plugins that allow you to send notifications to users as well. For example, you can send an email to a user when their comment is approved.

Email me whenever settings

Here are some more helpful resources on WordPress comments:

We hope this article helped you allow your users to subscribe to comments in WordPress. You may also want to check out our guide on how to allow user registration on your WordPress site and our expert picks for the best email marketing services for small businesses.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Allow Your Users to Subscribe to Comments in WordPress first appeared on WPBeginner.

How to Highlight Author’s Comments in WordPress

Do you want to highlight the author’s comments in WordPress posts on your website?

Highlighting the author’s comments in your WordPress blog can help you build engagement. Users are more likely to leave a comment when they see the author is actively participating in the discussion.

In this article, we’ll show you how to easily highlight the author’s comments in WordPress to boost engagement.

Highting comments by an author in WordPress blog posts

Why Highlight Author’s Comments in WordPress?

Comments are a great way to build user engagement on your website. If you want to get more comments on your articles, then you can encourage that by actively participating in the discussions.

For a new WordPress blog, you can easily reply comments during comment moderation. If you run a multi-author blog, then you can encourage authors to take part in the discussion as well.

However, most WordPress themes don’t distinguish between comments and list them using the same style.

Regular comments layout with no author highlighting

A casual reader may scroll through the comments, not realizing the additional content contributed by the author in the discussion.

Highlighting author’s comments helps you remedy that and makes the author’s comments stand out and be more noticeable.

The ultimate goal here is to encourage new users to join in the comments and ultimately subscribe to your newsletter or become a customer.

That being said, let’s take a look at how to easily highlight author comments in WordPress.

Highlighting Comment Author in WordPress

The easiest way to highlight comments by post author is by adding custom CSS to your WordPress theme. This allows you to easily add the code needed and see a live preview of how it would look on your website without saving it.

First, you need to visit Appearance » Customize in WordPress admin area. This will launch the WordPress theme customizer interface. You’ll notice a bunch of options in a column on your left and a live preview of your website.

Theme customizer in WordPress

From here, you need to click on the Additional CSS tab. This will open a text area where you’ll be adding the Custom CSS.

Additional CSS tab

However, you would want to see how the custom CSS will look when applied. To do that, you need to navigate to a blog post that contains comments by a post author.

Viewing comments in Theme Customizer

Scroll down to the comments section and then add the following custom CSS in the Custom CSS box on the left.

.bypostauthor { 
background-color: #e7f8fb;
}

You’ll immediately notice the author comment change matching the Custom CSS you entered.

Author's comment highlighted with a different background color

So how does this all work?

You see WordPress adds some default CSS classes to different areas of your website. These CSS classes are there regardless of which WordPress theme you are using.

In this sample code, we have used the .bypostauthor CSS class which is added to all comments added by a post author.

Let’s add some more CSS styles to make it even more prominent. Here is a sample code that adds a small ‘Author’ label to the comments by the post author and a border around the author’s avatar image.

.bypostauthor:before { 
content:"Author";
float:right;
background-color:#FF1100;
padding:5px;
font-size:small;
font-weight:bold;
color:#FFFFFF;
}
.bypostauthor .avatar {
border:1px dotted #FF1100;
}

This is how it looked on our test website.

Comment author highlighted with the Author label

Highlighting Comments by User Role in WordPress

Now, many WordPress blogs have team members responsible for answering comments. Popular websites may have post author, administrator, and moderators all answering comments to boost user engagement.

How do you highlight a comment added by a staff member that is not the actual author of the post?

There is an easy hack to achieve that. However, it requires you to add custom code to your WordPress website. If you haven’t done this before, then see our article on how to easily add custom code in WordPress.

First, you need to add the following code to the code snippets plugin or your theme’s functions.php file.

if ( ! class_exists( 'WPB_Comment_Author_Role_Label' ) ) :
class WPB_Comment_Author_Role_Label {
public function __construct() {
add_filter( 'get_comment_author', array( $this, 'wpb_get_comment_author_role' ), 10, 3 );
add_filter( 'get_comment_author_link', array( $this, 'wpb_comment_author_role' ) );
}
 
// Get comment author role 
function wpb_get_comment_author_role($author, $comment_id, $comment) { 
$authoremail = get_comment_author_email( $comment); 
// Check if user is registered
if (email_exists($authoremail)) {
$commet_user_role = get_user_by( 'email', $authoremail );
$comment_user_role = $commet_user_role->roles[0];
// HTML output to add next to comment author name
$this->comment_user_role = ' <span class="comment-author-label comment-author-label-'.$comment_user_role.'">' . ucfirst($comment_user_role) . '</span>';
} else { 
$this->comment_user_role = '';
} 
return $author;
} 
 
// Display comment author                   
function wpb_comment_author_role($author) { 
return $author .= $this->comment_user_role; 
} 
}
new WPB_Comment_Author_Role_Label;
endif;

This code simply adds the user role label next to the comment author’s name. This is how it would look without any custom styling.

User role labels added to comments

Let’s make it a little prettier by adding some custom CSS. Go to Appearance » Customize page and switch to the Additional CSS tab.

After that, you can use the following CSS to style the user role label in the comments.

.comment-author-label {
    padding: 5px;
    font-size: 14px;
    border-radius: 3px;
}
 
.comment-author-label-editor {  
background-color:#efefef;
}
.comment-author-label-author {
background-color:#faeeee;
}
 
.comment-author-label-contributor {
background-color:#f0faee;   
}
.comment-author-label-subscriber {
background-color:#eef5fa;   
}
 
.comment-author-label-administrator { 
background-color:#fde9ff;
}

This is how it looked on our test site. Feel free to modify the code to match your theme’s colors and style.

User role highlighted

For more details, you may want to read our article on how to add user role labels to WordPress comments.

We hope this article helped you learn how to highlight author comments in WordPress. Want to see how users interact with your website? See our tutorial on how to track user engagement in WordPress, and how to add web push notification on your WordPress site to grow your traffic.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Highlight Author’s Comments in WordPress appeared first on WPBeginner.