Hide Comment Dates on WordPress without Using a Plugin

Cách tạo Button trên thanh Menu Wordpress cực kỳ đơn giản

To hide the date on comments in WordPress without using a plugin, you can add a CSS snippet to your theme’s Additional CSS. This will make your website’s comments appear fresh and stimulate reader curiosity. First, find the CSS class associated with the comment date using Developer Tools in your browser. Then, add the CSS code .comment_date { display: none !important; } to the Additional CSS section in your WordPress dashboard. This will hide the comment date from view. Using this method is simple, direct, and avoids potential performance issues compared to using a plugin or a custom function.

Do you want to know how to "hide comment date on WordPress" without using a plugin? Removing the date on comments can give your website a fresh look and keep readers engaged with the content. In this article, we’ll guide you through the process of hiding the date on comments in WordPress easily.

Hide comment date on WordPress

There are various methods to hide the date on comments in WordPress, but we’ll show you a relatively simple way to do it. By following a few steps, you can quickly hide the date on comments in WordPress.

Step 1: Determine the comment’s CSS class

To begin, you need to identify the CSS class associated with the comment date. The CSS class name may vary depending on the WordPress theme you are using. Here’s how you can find the CSS class name of the comment date:

  • Visit a blog post with comments.
  • Open the Developer Tools in your browser (accessible through the browser menu or by pressing Ctrl + Shift + I).
  • Use the arrow icon in the Developer Tools to select the date element of the comment and identify the CSS class name.
See also  How to Redirect URL in WordPress?

Step 2: Add CSS code to hide comment date

Once you have the CSS class name of the comment date, you can add a simple CSS snippet to your WordPress theme’s Additional CSS. Here’s how you can do it:

.comment_date {
  display: none !important;
}

Explanation of the CSS snippet:

  • Filter: The .comment_date element is targeted for hiding.
  • Display: Setting the display property to none hides the comment date elements.
  • Importance: The !important rule ensures high priority for hiding comment dates.

By following these steps, you can effectively hide the comment dates on your WordPress website. Remember to click the "Publish" button to apply the changes.

Recommended WordPress Hosting?

If you’re looking for reliable WordPress hosting, check out the options below:

Supplier Capacity CPU Lowest price Register
Azdigi 6GB 2 55,0000 VND Link
Vietnix 2GB 1 56,000 VND Link

Conclude

In conclusion, you can easily hide comment dates in WordPress by using a simple CSS snippet. While there are other methods to remove dates from comments, such as plugins or custom functions, the CSS method is recommended for its simplicity and efficiency. Give it a try and keep your comments looking fresh!

5/5 - (1 vote)

Related posts