How to hide comments

WPtouch Pro respects comment settings in Settings > Discussion as well as the Discussion settings set on a per-page or per-post basis.

Hiding comments in WPtouch Pro only

You may want comments displayed in the desktop theme, while hiding comments in the WPtouch Pro mobile theme. To do so, add the custom CSS below to Appearance > Customize > CSS when editing the mobile theme. 

#comments, #respond {
display: none !important;

The code will also remove the "Comments are closed" text that is shown when comments are closed in WordPress.

Hiding comments or the comment form on Pages

The above code will hide the comments and comment form site-wide. If you would like to continue displaying comments on your site's Posts but not on Pages, you can add the code below to Appearance > Customize > Custom CSS.

.page #comments, .page #respond {
display: none !important;

Another way to remove comments and the comment form on Pages is to go to login to your WordPress Dashboard and click on the "Pages" link in the sidebar to open your pages listing. Click on the "Select all" button below the "Bulk Actions" dropdown to select all the pages displayed on that listing.

Hiding comments or the comment form on specific Pages or Posts with css

You can hide comments on specific Pages or Posts using css. This is useful when you want to continue displaying comments on those pages/posts in the desktop theme, but don't want to hide comments on all pages and posts in the mobile theme. 

for Pages

.page-id-ID #comments, .page-id-ID #respond {
display: none !important;

for Posts

.postid-ID #comments, .postid-ID #respond {
display: none !important;

Change "ID" to the actual ID number for your post or page. Here is information on finding page and post ids in WordPress -  Find Page ID

Select "Edit" from the "Bulk Actions" dropdown menu and click "Apply". Click on the "Comments" dropdown menu and select "Do not allow".

Click the "Update" button to save the changes.

Note that this option will also affect the comments on the desktop theme.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us