Stop the Display of “0 Comments”?

[ad_1]

Hello,

i have turned off Comments on all static pages as most of them are simply needed documents (imprint, privacy polcy, etc), but it still shows “0 Comments” or in my case (german) “0 Kommentare”. I tried jQuery Selector to find the Class to it, it showed .h1#comments and #comment-wrap so i added

.h1#comments,.comments-wrap{display:none!important}

but it still showed up. Has anyone a better Idea on how to disable that showing up?

[ad_2]
1 Comment
  1. You’re targeting a class called “.comments-wrap” and your console is showing the id “#comments-wrap”. Change to:

    `.h1#comments, #comments-wrap {display:none !important;}`

    Edit: This only hides the elements if you don’t need the comment section at all you can add a filter to remove comments completely.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer