Remove Comments from Page WordPress

Remove Comments from Pages WordPress Chopping Wood Chop Comments Banner

WordPress has a fantastic commenting system, and is one of the reasons it is the most popular blogging platforms in the World. WordPress command 48% market share of the top 100 blogs worldwide. This commenting feature is great on posts as guests can interact with the content and other guests. However, on WordPress pages, comments can look out of place and give the wrong impression that the website is a blog and not a business site.

There are plugin options that can handle this issue, but those are not always reliable. Today, I’m going to show you how to remove comments form page in WordPress using the code editor. I know this might sound scary to some, but trust me that it is rather easy once you know what to look for.

Appearance Button WordPress Remove Comments from PageFirst, we are going to open the code editor of your WordPress website. To be able to access the code editor area, you must have Admin access to the site and be running the site on a domain/hosting scenario (not the free wordpress.com sites).

Hover over the option on the main menu titled “Appearance” and look for the option “Editor” and click on it (if you don’t see that option, it most likely means you do not have Admin access to the site). Then look through all the site files on the right hand side and click on the page labeled “Page Template” (page.php).

Page Template page.php WordPress Remove Comments from Pages

This is the PHP page that controls all the pages on your WordPress website. We only need to remove the PHP script that calls the comments. That piece almost always looks the same, and usually arrives on the page at about 65-75% from the top. The comments PHP script often looks like this:

<?php comments_template(); ?>

All we need to do is highlight that piece of code and then click cut to clipboard by right clicking on the code or hitting control + X on the keyboard. Now hit the “Update File” button at the bottom and go to the website, on a page and refresh. Comments gone? Great!

If they did not disappear or the site is messed up, go back and put the code form the clipboard back in by pasting it in the EXACT same spot as it was before. Repeat the process till you find and remove comments from page.

Enjoy “Remove Comments from Page WordPress”?

Check out “Exclude Pages from Menu WordPress” next –>

Jophiel Silvestrone

Written by: Jophiel Silvestrone

Jophiel Silvestrone has written 198 posts in the Tech Blog.

Jophiel grew up on a ranch in Paradise Valley, Montana near Chico Hot Springs. Working on the ranch instilled work ethic and self motivation. Filled with this drive, Jophiel started mowing the local school's yards twice a month throughout the summers, at the age of 12. He moved to Billings in 2004, where he has been deeply involved in the local business community ever since. A serial entrepreneur, Jophiel has ran multiple businesses in our local community. The first business, a janitorial and carpet cleaning company, founded in 2005, has employed over 50 locals. Moving on to the media industry, Jophiel and several partners founded Green Directory Montana in the spring of 2007. Green Directory's sustainability ranking software awarded points based on sustainable or "green" actions. These points counted towards a business's total "Green Score," which in turn ranked them against other businesses in their category and throughout the entire site. It also featured a limited edition print version distributed annually. A business acquisition allowed Jophiel to focus on new projects, and a few close business colleagues and Jophiel started Rocky Mountain Mr. & Ms. Magazine, a lifestyle publication for men and women in the Magic City. After a year and a half at the helm of RM3 Magazine, the business was purchased. He now runs a web development company SkyPoint Studios and fathers his son Jaoquin, who plays football, basketball, soccer, and is learning snowboarding from his dad. Recently, has expanded to locations in Havasu, Arizona & Vegas. SkyPoint Studios is a market leader in both Billings & Havasu and Jophiel is working on building that same level of market dominance in Vegas. Specialties: Extensive experience in online and offline business. Especially savvy at WordPress, and operate several sites, one example is the blog: skypointwebdesignbillingsmontana.com/tech-blog. Check out skypointwebdesignbillingsmontana.com for the latest projects from SkyPoint Studios.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.