EDITS.WS

Tag: comments

  • How to Allow Blog Users to Moderate Comments in WordPress

    Do you want to allow blog users to moderate comments in WordPress?

    If your site gets a lot of comments, then it can be difficult to moderate them all. One solution is creating a separate user role so that other people can manage the comments for you.

    In this article, we will show you how to allow blog users to easily moderate comments on your WordPress blog.

    How to allow blog users to moderate comments in WordPress

    Why Allow Blog Users to Moderate Comments in WordPress?

    Comment moderation can take a lot of time and effort, especially for big blogs that get lots of comments. If you are slow to approve comments or delete spam, then visitors may stop interacting with you.

    By giving blog users the power to moderate comments, you can combat spam and deliver a better experience for your visitors.

    These users might be members of your customer support team, your community manager, or even an active and trusted commenter on your WordPress blog.

    By default, WordPress doesn’t let you create a user who is only responsible for moderating comments. With that being said, let’s see how you can easily allow blog users to moderate comments using a WordPress plugin.

    Simply use the quick links below to jump straight to the method you want to use.

    Method 1: Add a Comment Moderator Role to Specific Users

    The Comment Moderation Role plugin allows you to quickly and easily give a comment moderator role to specific users. This plugin creates a new WPB Comment Moderator role that enables the user to approve, decline, or edit comments on any post without giving them access to other parts of the WordPress dashboard.

    The first thing you need to do is install and activate the plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

    Upon activation, you will have access to a new user role called ‘WPB Comment Moderator’.

    To assign this role to an existing user, simply go to Users » All Users. Then, check the box next to that person’s username.

    Editing user roles in WordPress

    After that, simply open the ‘Change role to…’ dropdown menu and select the ‘WPB Comment Moderator’ role.

    You can then go ahead and click on ‘Change’.

    Editing the built-in user roles in WordPress

    Now, this person will have access to the WordPress comment moderation panel.

    You can also create a new user and assign them the comment moderator role. To do this, simply go to Users » Add New and enter the person’s information, such as their email address.

    Creating a new comment moderator user role in WordPress

    Next, you need to open the ‘Role’ dropdown and select ‘WPB Comment Moderator’.

    When you are happy with the information you have entered, just click on the ‘Add New User’ button.

    Adding a new comment moderator role in WordPress

    Now, this person can log in to their account and see a comment moderation dashboard, similar to the image below.

    As you can see, this person can only moderate comments and edit their profile. All other WordPress admin dashboard features are hidden.

    Allowing users to moderate comments in WordPress

    Method 2: Add Comment Moderation Capabilities to Any User Role

    You can also add the comment moderation permission to a user role or even create a completely new user role for managing your site’s comments.

    This is a great choice if you want to allow multiple people to moderate comments.

    For example, you might create a comment moderation team or give your site’s Contributors permission to moderate comments. This makes it easy for guest bloggers to interact with their readers.

    The easiest way to edit user permissions in WordPress is by using the Members plugin. This free plugin allows you to customize the permissions for every user role and even create completely new roles.

    The first thing you need to do is install and activate Members. For more details, see our step-by-step guide on how to install a WordPress plugin.

    Upon activation, go to the Members » Roles page to see all the different user roles on your WordPress website.

    Editing WordPress member roles

    To start, you can add the comment moderation permission to any existing user role.

    To do that, simply hover over that role and then click on the ‘Edit’ link when it appears.

    How to edit a user role in WordPress

    The left column shows all the different types of content, such as reusable blocks and WooCommerce products. Simply click on a tab, and you will see all the permissions for that content type.

    To allow users to moderate comments, you need to select the ‘General’ tab in the left-hand menu. Then, find ‘Moderate Comments’ and check the ‘Grant’ box.

    Giving moderate comment permissions to a user role in WordPress

    With that done, simply click on ‘Update’ to save your changes. Now, anyone with this user role can moderate your website’s comments.

    Another option is to create a new user role by going to Members » Add New Role. You can now type in a title for the new role, such as Community Manager, Comment Moderator, or something similar.

    How to add a new user role in WordPress

    After that, you can add the comment moderator permission to this role by following the same process described above. To give this role additional permissions, simply check any of the other ‘Grant’ boxes.

    For more details on user roles and permissions, please see our beginner’s guide to WordPress user roles and permissions.

    When you are happy with how the user role is set up, don’t forget to click on ‘Add Role.’

    Creating a community manager role to moderate comments in WordPress

    Now, you can assign this role to anyone who needs the comment moderator permission. For step-by-step instructions, please see our guide on how to add new users and authors to your WordPress blog.

    We hope this article helped you learn how to allow blog users to moderate comments in WordPress. You may also want to see our expert picks for the best email marketing services for small business and read our guide on how to allow user registration on your WordPress site.

    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 Blog Users to Moderate Comments in WordPress first appeared on WPBeginner.

  • How to Change the Gravatar Image Size in WordPress

    Do you want to change the Gravatar image size in WordPress?

    Gravatar is a service that connects a user’s email address with a picture. WordPress themes show Gravatars at a set size, but you may prefer to make these images smaller or larger to better suit your website’s design.

    In this article, we will show you how to change the size of Gravatar images in WordPress.

    How to change the Gravatar image size in WordPress

    Why Change the Gravatar Image Size in WordPress?

    Gravatar stands for Globally Recognized Avatar. It’s a web service that allows you to create a profile and associate avatar images with your email address.

    Most WordPress themes show a Gravatar next to the user’s comment. Some themes also display a Gravatar in the author bio box.

    Even if a user doesn’t have a Gravatar account, then your site will still show one of the default WordPress Gravatars.

    The default WordPress Gravatar

    Sometimes you may want to change the size of your theme’s Gravatars. For example, you may want to make them bigger so that they stand out. This can draw the visitor’s attention to your site’s comment section and help you get more comments on your WordPress posts.

    Having said that, let’s take a look at how you can change the Gravatar image size on your WordPress site. Simply use the quick links below to jump to the method you want to use.

    Method 1: Change Gravatar Size Using the WordPress Full-Site Editor (Block Themes Only)

    If you are using a block-based theme such as ThemeIsle Hestia Pro or Twenty Twenty-Three, then you can change the Gravatar size using the full-site editor.

    This method doesn’t work with all themes, so if you are not using a block-enabled theme, then we recommend using method 2 instead.

    In the WordPress dashboard, go to Appearance » Editor.

    Opening the WordPress full-site editor (FSE)

    In the left-hand menu, you can choose whether to edit a template or template part.

    To change the Gravatar size for WordPress comments, you will typically select ‘Template Parts’ from the left-hand menu.

    Template parts, in a WordPress block-enabled theme

    After that, just click on ‘Comments.’

    You can now click to select the Comments template part.

    The 'comments' template part in the WordPress full site editor

    This opens a new menu with settings you can use to customize the comments template part.

    You can now go ahead and click on any of the Gravatars in the live preview.

    Changing the Gravatar image size using the full site editor

    In the right-hand menu, you can select the ‘Block’ tab if it isn’t already selected.

    You can now make the Gravatars bigger or smaller by dragging the ‘Image Size’ slider.

    Changing the size of a Gravatar using the full site editor (FSE) in WordPress

    As you move the slider, all the Gravatars will update automatically, so you can try different sizes to see what looks the best.

    When you are happy with the changes you have made, click on the ‘Save’ button.

    Saving resized Gravatars using the full-site editor (FSE)

    Now if you visit any comment section on your WordPress website, you will see the changes live.

    Method 2: Change Gravatar Size for WordPress Comments (Works With All Themes)

    If you are not using a block-enabled WordPress theme, then you can change the Gravatar size for WordPress comments using code.

    This method requires you to edit theme files, so it’s not the most beginner-friendly option. However, this method should work for most WordPress themes.

    If you edit your WordPress theme files directly, then those changes will disappear the next time you update your theme. With that being said, we recommend creating a child theme, as this allows you to update your WordPress theme without losing customization.

    After creating a child theme, you will need to connect to your WordPress site using an FTP client such as FileZilla, or you can use the file manager of your WordPress hosting cPanel.

    If you are a SiteGround customer, then you can use the Site Tools dashboard instead.

    If this is your first time using FTP, then you can see our complete guide on how to connect to your site using FTP.

    Once you are connected, you need to go to /wp-content/themes/ and open the folder for your current WordPress theme.

    An example of an FTP client

    Once here, open the comments.php file and look for a wp_list_comments function. Inside this function, you will find theavatar_size, which sets the size of the Gravatar.

    Here’s an example of how this might look:

    <?php
    wp_list_comments(
        array(
            'avatar_size' => 60,
            'style'       => 'ol',
            'short_ping'  => true,
        )
    );
    ?>
    

    You can simply change the avatar_size to the size you want to use. In the code snippet above, this would mean changing 60 to another number.

    Gravatars are square, so WordPress will use the same value for the image’s width and height. This means that you only need to type in one number.

    After making this change, make sure to save and upload the file back to your WordPress hosting account. When you are finished, you can visit your WordPress blog to see the change in action.

    If the Gravatar image hasn’t changed, then it may be due to the cache. To learn more, please see our guide on how to fix WordPress not updating right away.

    If the Gravatar still doesn’t change, then your theme’s CSS could be overriding the settings in the comments.php file.

    You can see whether this is the case using your browser’s Inspect tool. The steps will vary depending on which browser you are using, but on Chrome, you can simply right-click or Ctrl-click the Gravatar and then select ‘Inspect’.

    Inspecting a WordPress Gravatar using Google Chrome

    This will show the page’s HTML and CSS code in a new panel.

    In this code, you need to look for the height and width values.

    Editing a WordPress Gravatar using Chrome's Inspect tool

    If the size is different from what you specified in the comments.php file, then this means your theme’s style.css file is overriding your changes.

    If this is the case, then simply switch back to your FTP client. You can now open the theme’s folder and then open the style.css file.

    Opening a WordPress theme's style.css file using an FTP client

    Here, search for a block of code that has the word avatar.

    You will typically find this in a comment-author .avatar CSS class, such as this:

    .comment-author .avatar {
        height: 42px;
        position: relative;
        top: 0.25em;
        width: 42px;
    }
    

    You can now go ahead and change the width and height to the values you want for your Gravatars.

    After that, simply save your changes. Now if you visit your WordPress blog or website, you will see your updated Gravatar images.

    At this point, you may be wondering why we recommend trying to change the Gravatar size in the comments.php file before using the easier CSS method.

    Firstly, CSS can sometimes make the Gravatars look blurry, especially if you make the avatars much larger than the original image. Secondly, changing the image size in comments.php often helps your site to load faster.

    For more on this topic, see our ultimate guide to boost WordPress speed and performance.

    Method 3: How to Change Gravatar Size for Author Bios

    If you run a multi-author WordPress site, then an author box can help readers learn more about the post’s author.

    If you want to add this feature to your website, then check out our guide on how to add an author info box in WordPress posts.

    Many author bios show the writer’s Gravatar along with their bio. To change the default Gravatar size in your author bio boxes, you need to find the theme file that adds the bio.

    Simply connect to your site using an FTP client such as FileZilla or the file manager of your WordPress hosting. Once you are connected, go to /wp-content/themes/ and open the folder for your current WordPress theme.

    After that, you need to open the template-parts folder.

    Editing template parts in a WordPress theme using an FTP client

    You now need to find the file that contains the get_avatar code. You will often find this code in a template part file called author-bio.php, single.php file, functions.php file, or similar.

    Here’s an example of how this code might look:

    <div class="author-bio <?php echo get_option( 'show_avatars' ) ? 'show-avatars' : ''; ?>">
            <?php echo get_avatar( get_the_author_meta( 'ID' ), '85' ); ?>
    

    In the snippet above, you can simply change the number 85 to the size you want to use.

    In other themes, the code may look like this:

    get_avatar( get_the_author_meta( 'user_email' ), 85);
    

    You can simply replace the number with the value you want to use to make the Gravatar bigger or smaller.

    After changing the size, don’t forget to save your changes. You can then visit your website to see the new author bio box in action.

    If the Gravatars haven’t changed, then you will need to search for the avatar class in the style.css file by following the same process described above. Once you find this class, you can type in the new Gravatar height and width values.

    We hope this tutorial helped you learn how to change the Gravatar image size in WordPress. You may also want to learn how to display round Gravatar images in WordPress or check out our list of the best landing page plugins.

    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 Change the Gravatar Image Size in WordPress first appeared on WPBeginner.

  • How to Feature or Bury Comments in WordPress (2 Easy Ways)

    Are you looking for a way to display featured comments on your WordPress website and hide other comments?

    Featuring comments that are encouraging and exciting at the top of the WordPress comments section can increase user engagement. You can also easily discourage offensive or irrelevant comments by burying them.

    In this article, we will show you how to easily set up featured comments in WordPress.

    Feature/bury comments in WordPress

    Why Feature/Bury Comments in WordPress?

    WordPress comments are an excellent way to increase user engagement on your website.

    However, fostering a large community can be a challenge as your WordPress blog grows.

    You want to make sure that you are rewarding users who are adding the most value to the discussion while at the same time politely discouraging other users from leaving unhelpful comments.

    For instance, a user may have posted a self-promotional comment that contains a link to their blog. Or multiple users might have posted comments that do not add value to the discussion.

    Comments

    To improve comments quality on your website, you can feature the comments that add value to the topic at the top of the discussion and bury irrelevant comments at the bottom.

    You can also add an upvote/downvote feature to your comments section, similar to popular social media platforms like YouTube, to increase user engagement.

    Preview of the thumbs up/ thumbs down feature in YouTube

    That being said, let’s see how you can easily feature/bury comments in WordPress.

    Method 1: Feature/Bury Comments Using the Thrive Comments Plugin (Recommended)

    In this method, we will show how to bury/feature comments using the Thrive Comments plugin.

    It is the best WordPress comments plugin on the market that helps you build an engaged and interactive community on your WordPress website. It also enables you to feature/bury comments in your discussion section.

    To get started, you will need to visit the Thrive Comments website and sign up for an account. Then, head to your member dashboard.

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

    Install the Thrive Product Manager plugin

    Next, you have to visit your WordPress website dashboard to install and activate the Thrive Product Manager plugin. For more instructions, please see our beginner’s guide on how to install a WordPress plugin.

    Upon activation, head over to the Product Manager tab from the WordPress admin dashboard. From here, simply click on the ‘Log into my account’ button.

    Log into the Thrive Product Manager dashboard

    After entering your login credentials, you will be able to see your Thrive Product Manager Dashboard.

    Now, you can choose which products you want to install and license on your site. Simply click on the ‘Thrive Comments’ plugin and then click the ‘Install selected products’ button.

    Install Thrive Comments

    When the Thrive Comments plugin is ready to use, you will see a success message displayed on the screen.

    To feature/bury comments, head over to the Comments » Thrive Comments Moderation page from the WordPress admin sidebar.

    Once you are there, you will see a number of options under each comment. Simply hover your mouse over the ‘More’ option to open a dropdown menu.

    From here, you can select the ‘Feature’ option to feature a comment at the top of your feed.

    Feature comment from dropdown menu

    By using the ‘Feature’ setting for some comments, the irrelevant comments will automatically get buried at the bottom of the discussion section.

    You can also approve, edit, or trash a comment as needed.

    Configure comments settings

    Now, visit your WordPress website to see the featured comments at the top of the discussion section.

    You will also notice that all the featured comments have a badge in the top left corner to signify their importance.

    Thrive featured comment preview

    You can also add an upvote/downvote down feature to your comments sections using Thrive Comments. This way, users will be able to vote on comments to push them up or down the discussion section.

    To do this, you will have to visit the Thrive Dashboard » Thrive Comments page from the WordPress admin sidebar.

    Then, click on the ‘Voting and Badges’ tab to expand it. Next, you have to simply choose the ‘Up and down’ option under the ‘Comment Voting’ section.

    After that, you can also toggle the ‘Users must be registered and logged in to vote’ switch to ‘On’ if you only want logged-in users to be able to vote on comments.

    Add the upvote/downvote feature to your comments using Thrive Comments

    Once your changes are saved automatically, visit your website to check out the upvote/downvote system in action.

    This is what it looked like on our demo website.

    Thrive featured comments preview

    Method 2: Feature/Bury Comments Using the Comments-wpDiscuz Plugin (Free)

    If you are looking for a free solution, then this method is for you.

    First, you need to install and activate the Comments-wpDiscuz plugin. For more details, please see our step-by-step guide on how to install a WordPress plugin.

    Note: With Comments-wpDiscuz, you can only feature or bury comments in your comments section using the upvote/downvote system. This means that users can upvote a comment that they feel adds to the discussion and downvote offensive or irrelevant comments.

    Upon activation, visit the wpDiscuz » Settings page from the WordPress admin sidebar.

    From here, go ahead and click on the ‘Comment Thread Features’ option.

    Click the Comment Thread Feature option on the settings page

    This will direct you to a new screen, where you have to scroll down to the ‘Comment Voting Buttons’ section. Once you are there, simply toggle the switch next to the ‘Show Voting Buttons’ option.

    After that, you can also choose the icons that will represent the upvote/downvote feature for your comments using the ‘Voting Button Icon’ option.

    Next, simply toggle the ‘Enable down vote button (dislike)’ switch.

    Toggle the Voting button switch

    Finally, click on the ‘Save Changes’ button to store your settings.

    Now, you can visit your WordPress website to check out the upvote/downvote system in action.

    Here, you will see a dropdown menu at the top of the comments section. Users can now select the ‘Most Voted’ option from the dropdown menu to see the most-reacted comments on your website.

    wpDiscuz comments preview

    We hope this article helped you learn how to feature/bury comments in WordPress. You may also want to see our beginner’s guide on how to moderate comments in WordPress and our top picks for the best WordPress plugins to help grow your website.

    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 Feature or Bury Comments in WordPress (2 Easy Ways) first appeared on WPBeginner.

  • How to Remove the WordPress Comment Author Link

    An active comments section is a huge SEO advantage, but in certain cases, it’s better for your site’s SEO if you remove the WordPress comment author link. Black Hat SEO operators use sophisticated systems to drop their spammy links on unsuspecting websites. Don’t allow these ruthless operators to use the built-in WordPress comments functionality to […]

    The post “How to Remove the WordPress Comment Author Link” first appeared on WP Mayor.