Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress for Website Owners Adding and Editing Content Publish Page Overview

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

Editing a Page on Wordpress

Hello there! :)

I've just started the second course in the Wordpress. I'm having a lot of fun delving into the admin settings for Wordpress sites.

I was having a go at editing a "Page" in Wordpress and using the "screen options" and then updating the page. One of the things I'd like to to is remove the comments section so it looks more like a "static" page then something created by a CMS but it doesn't seem to work...

Shouldn't it work if you leave the "comments" checkbox unticked? Thanks. :)

2 Answers

TJ Egan
TJ Egan
14,420 Points

I don't have access to a Wordpress Dashboard, but I'm pretty sure if you go to the edit page / post area, there will be an option for 'Show: Content Settings' or something. Once you check that, scroll down to the bottom and you should see a checkbox for 'Remove Comments' or 'Do Not Allow Comments'

You don't need to edit any PHP to do this

Mitchell Springer
Mitchell Springer
2,576 Points

That may work unless there is some back end coding that is overriding that. My home page has the allow comments box checked yet you can't post comments on my home page. It's worth a shot though to see if it resolves the issue.

Mitchell Springer
Mitchell Springer
2,576 Points

The screen options in the admin panel only adjusts what you see in your admin panel, not what is actually being displayed on the website. In order to change what the user sees, you may have to edit some php files to remove comments from pages.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Thanks Mitchell.

I thought the Admin area was the interface between the back end and the front end for changing the appearance (beyond switching between themes) of the website.

If I need to go into individual php files I guess I'll learn about that time in due time. :)

Mitchell Springer
Mitchell Springer
2,576 Points

Unfortunately, it doesn't work like that. It just allows you to remove or make visible things that you want to see on your end of things. So for example, if you display comments, you can actually post comments from the admin panel without having to navigate to the actual page.

Or if you want distraction free writing, you can untick everything under screen options while you write.