Recent comments on my posts

Miglior broker di opzioni binarie 2020:
  • BINARIUM
    BINARIUM

    Il miglior broker di opzioni binarie!
    Allenamento gratuito!
    Ideale per i principianti!
    Ottieni il tuo bonus di iscrizione!

How to Show Recent Comments in WordPress Sidebar

Are you looking to add recent comments in your WordPress sidebar? Recently, one of our readers asked if we could cover how to display recent comments in WordPress. That’s why in this article, we will show you how to easily show recent comments in WordPress sidebar or other widget-ready areas.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

Method 1: Default Recent Comments Widget in WordPress

WordPress comes with a built-in ready to use recent comments widget which you can add to your sidebar.

Simply go to Appearance » Widgets and add Recent Comments widget to your sidebar.

You can provide a widget title and choose the number of comments you want to display. Next click on the save button to store your widget settings.

Now you can visit your website to see the recent comments widget in action.

Method 2: A Better Recent Comments Widget in WordPress

As you can see that the default recent comments widget only shows comment author name and post title. There is not much information about the comment itself which makes it look very plain.

Here is how you can add a better recent comments widget to your WordPress sidebar.

First thing you need to do is install and activate the Decent Comments plugin. Upon activation, simply visit Appearance » Widgets page and add Decent Comments widget to a sidebar.

Miglior broker di opzioni binarie 2020:
  • BINARIUM
    BINARIUM

    Il miglior broker di opzioni binarie!
    Allenamento gratuito!
    Ideale per i principianti!
    Ottieni il tuo bonus di iscrizione!

Decent Comments widget comes with a lot of different options. Among these options, you will find the option to display comment author avatar and comment excerpt.

WordPress uses Gravatar to automatically display a comment author’s avatar image. See our guide on Gravatar and why you should start using it right away.

You can define the size of comment author’s gravatar image as well as the excerpt length. This gives you control on how the recent comments appear in the widget.

Don’t forget to click on the save button to store your widget settings.

Now visit your website to see the recent comments with author images in action.

You can adjust the appearance of recent comments by editing CSS in your theme or child theme. You can also use CSS Hero plugin which allows you to change appearance of any element on your site without writing any CSS or HTML.

We hope this article helped you show recent comments in sidebar of your WordPress blog. You may also want to see our guide on how to improve WordPress comments with De:comments.

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.

How to remove the WordPress comments box from pages

We enjoy teaching WordPress and are happy to reply to your WordPress comments and questions.

We recently received this from a client, “My friend is muddling through setting up a wp site and is asking how to take the ‘leave a reply box’ off the site??”

What she is asking is how to remove the comment/discussion box.

I’m not sure if she wants to remove it site-wide from pages and posts or just from her static pages.

In this post we’ll cover all the steps you need to take to turn off WordPress comments:

If you want to skip these steps and go with the easiest solution you can use a free disable comments plugin.

Solution #1:
How to turn off comments sitewide (pages & posts)

Go to Settings » Discussion » untick “Allow people to post comments on new articles

This solution applies to new posts/pages that you will publish from now on. If you have already published posts/pages you’ll need to do the following BULK EDIT to disallow comments from posts and pages that have already been published.

Bulk Edit

  1. Go to All Pages » at top next to title tick the box to select all pages
  2. Click “Edit” under bulk actions
  3. Click “apply”
  4. Choose “do not allow” next to comments
  5. Click “update”

Now repeat the bulk edit for all Posts.

OR …

Solution #2:

How to turn off WordPress comments for pages only (leave on for blog posts)

Begin with a bulk edit as explained above to turn off comments for all pages that have been published to date. If you only have a couple of pages you can click Quick Edit and turn off comments in quick edit view.

Make Discussion Options visible

You may also find it very helpful to make discussion options visible on pages, this will allow you to turn off comments on the individual page before you publish it. If you don’t see the section labelled “Discussion” below the visual editor (where you type your page content), then you need to click on the ‘Screen Options’ button located in the upper right-hand corner of the page you are on.

Here’s how to display Discussion options on a page:

  1. In the top right-hand corner of your WordPress admin panel (just below the dark grey toolbar and the Howdy, message) there is a tab called Screen Options. Click to open the screen options tab.
  2. Tick the box for Discussion
  3. Click the Screen Options tab again to close it.

Now, scroll down the page to Discussion settings and untick the boxes for “Allow comments” and “Allow trackbacks and pingbacks on this page”. The problem with this solution is that you will need to remember to turn off comments on all new pages you publish.

Solution #3:

How to remove Comments from a WordPress Page Template

The best solution is to remove one line of code from the page template that calls the comments. Always create a Child Theme before you edit theme files.

If you are using the Twenty Ten theme you would open the loop-page.php file. Locate (2nd last line) and remove the line

If you are using the Twenty Twelve theme you would open the page.php file and find the same line of code.

Solution #4:

How to remove WordPress Comments through the functions file

Note: If there are already comments on pages — do one of the methods above to remove all past existing comments before using this method.

Open your child theme functions.php file and add this code to remove comment support for pages.

More tips in our WordPress for Beginners series

We hope that you’ve found these WordPress for Beginners tips helpful.

This post is part of our WordPress Beginners series. If this post was helpful you may be interested in reviewing our WordPress Launchlist.

If you want to learn more about WordPress, sign up for our WordPress Intensive.

Recent comments on my posts

Newsletter

Newsletter

Don’t miss out on new posts

Disclaimer

This demo site is only for demonstration purposes. All images are copyrighted to their respective owners. All content cited is derived from their respective sources.

Find Us on YouTube

Something went wrong. Check YouTube API key and channel ID.

Miglior broker di opzioni binarie 2020:
  • BINARIUM
    BINARIUM

    Il miglior broker di opzioni binarie!
    Allenamento gratuito!
    Ideale per i principianti!
    Ottieni il tuo bonus di iscrizione!

Come iniziare a fare trading di opzioni binarie
Lascia un commento

;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: