Hello,
I'd like to remove the comment field from some selected pages (e.g. some static pages as Who we are, Contact us ecc).
How can i do it? Is there a plugin to manage comments properly?
Thanks so much
Hello,
I'd like to remove the comment field from some selected pages (e.g. some static pages as Who we are, Contact us ecc).
How can i do it? Is there a plugin to manage comments properly?
Thanks so much
Edit the page. On the bottom, there's an option for discussion which says if you want to allow comments or ping backs :) Uncheck what you don't want. Save. Party.
Just open a page for edit, scroll down you'll see the "Discussion" section.
Uncheck the words that say "Allow comments"
Hope this would helps
since wp3.1:
if you can't find this 'discussion' section, click on 'screen options' near the top right of that page.
if you can't find this 'discussion' section, click on 'screen options' near the top right of that page.
This seems to work only in the admin page. If I uncheck comments i don't see them Only in the admin panel but they still remain in the site page, unfortunately.
Any other tips?
Got it. In Screen Options you have to tick "Discussion" and THEN when you scroll your page in the edit page you'll see the "Allow comments" option.
Now, just to know it: how can i disable comments in the whole site?
General Settings -> Discussion
Uncheck Allow people to post comments on new articles
That WILL NOT turn off comments on posts that currently allow comments. Just new ones.
You can disable them for the whole site in your site admin settings - under Settings, choose Discussion. One of the checkboxes is to not allow comments. This will only affect NEW posts created, though; not those that are already on your site. YOu'll have to manually turn those off. (similarly, after you disable sitewise, you can turn commments on for just a post here and there, should you want to).
Your other option - open the PHP files/templates that are displaying your posts, and remove the code that displays the comments. That would be one way to stop them from displaying on ALL your posts, if you have a lot. Depending on your theme, it would be removing the line '<?php comments_template(); ?>' from your files/templates, though it could be something else (but similar) depending on the theme.
Ok thanks.
Your other option - open the PHP files/templates that are displaying your posts, and remove the code that displays the comments. That would be one way to stop them from displaying on ALL your posts, if you have a lot. Depending on your theme, it would be removing the line '<?php comments_template(); ?>' from your files/templates, though it could be something else (but similar) depending on the theme.
What if my template is Twenty Ten?
Then you should make a child theme, cause if you edit 2010 directly you will LOSE your edits when you upgrade :)
Oh don't worry, i'm not going to upgrade WP. I just need to build a simple website. But i need to know how to delete the whole comment thing
Just a friendly suggestion - you always, always want to upgrade your WP installation when a new version comes out. You'll be sorry down the road. Unless you only need this site to be up for a month or two, you definitely will need to upgrade someday.
Just a friendly suggestion - you always, always want to upgrade your WP installation when a new version comes out. You'll be sorry down the road. Unless you only need this site to be up for a month or two, you definitely will need to upgrade someday.
Ok, I don't get this point: if i don't upgrade WP, my site will be down? I mean, offline?
Yeah, yeah you will upgrade WordPress :) You want to, you need to, and that's ... what you're gonna do. It's what we all do.
http://codex.wordpress.org/Child_Themes
http://codex.wordpress.org/Settings_Discussion_SubPanel
WordPress is a constantly evolving well-oiled machine. If you stroll through the Codex you will see the best documentation ever of the evolution of a piece of software. Lots of functions and template tags have been deprecated over time. Do they break immediately? No - but eventually it's bound to happen. Plus, if you are using plugins anywhere, you'll have to upgrade those - and if you're not upgrading your WP then that will cause a problem. If you don't upgrade the plugins, that will cause a problem.
Furthermore, look through the history of WP upgrades and their reasons. A number have been for security holes. The farther out of date, the bigger risk you have of someone sabotaging your site.
There are 1,001 reasons you need to keep your WP installation up to date... I can go on if you like... :)
Furthermore, with one-click upgrading, there's just no reason not to (but take it from someone who's learned... you have to backup your database, and preferably your site files too, before doing an upgrade! Every time!)
Just trying to pass on some wisdom I've learned over time...
Ok then let me see. I create this child folder and then i copy everything from twenty ten (and when i say copy i mean it. i download the files an then i upload them in this new folder), i switch template and, by magic, it will work. Is that right?
(I've already made a lot of changes, i don't want to lose them!)
The short answer is yes... hopefully you're comfortable enough with file structure, etc., that this all makes sense. Basically you just want to take the folder with your theme, duplicate it, give it a new name, and then use that as your theme. I primarily use premium themes for my client work, those don't get overwritten by upgrades to WordPress. Twenty Ten does, because it's the default WP theme.
Here's another tutorial in child theme development. I didn't write this, I just Googled, and scanned it and it looks fairly decent. You could Google "creating WordPress child themes" for other help if you need step-by-step help, though the Codex instructions are sufficient as long as they make sense to you.
I don't understand why WordPress is so user un-friendly. I am speaking in general, actually - also about other CMS. I mean, why doesn't it create a child-theme by default? I'm comfortable with CSS HTML ecc, but I simply didn't think about it. There should be an advice a "Be aware of this thing" somewhere.
Are we out of topic so far? Maybe, just a bit
In the grand scheme of WP things, Child Themes are rather new (older than 3.x, newer than sidebar widgets). I know what you mean about the 'why doesn't it do this automatically!?'
The devs are aware and it's something that comes up a lot. Solutions that remain compatible with the past are being worked on, but it's not as simple as it should be.
I primarily use premium themes for my client work, those don't get overwritten by upgrades to WordPress. Twenty Ten does, because it's the default WP theme.
The obvious thing to point out HERE is that if you upgrade your commercial theme (they're not premium, they just cost money, I pay for 'em too), then you lose your changes.
I just hit my 2 year anniversary of WordPress development. I've been a web designer for almost 15 years now. When I started my own business 2 years ago it was with the intention of doing regular static sites. Overwhelmingly my clients wanted a CMS so I dove into WordPress. For the first couple of months I felt the way you do. Once it "clicks" it makes all the sense in the world... I just encourage you to hang in there.
To answer your question though - the reason it doesn't create a child theme by default is that just about anyone who wants to use the Twenty Ten theme does NOT know anything about HTML and CSS, they want to use the theme off the shelf, and they're not going to do much customization and certainly not going to touch the code, and wouldn't know how to create a child theme. Those who do modify Twenty Ten have probably been through quite a bit of the Codex (including the starter articles) in which it does indeed recommend the child theme.
Again, if you purchased a theme (or even used any of the other, non-default WordPress themes) they would NOT be overwritten by an upgrade to WordPress. That's the beauty of how the themes are structured - the core files are not intermingled with the theme files. Twenty Ten (and Kubrick, formerly) ARE updated with a WP upgrade, because they're "beginner" themes and WP is doing a favor by upgrading them.
Hope that helps... if you stick with it and keep learning more I think you'll find that WP is indeed very user-friendly -- for me, far more so than the "other" major CMSes out there.
Let me also add - WP is phenominal about always working to make it more user friendly with the new features they add with upgrades. Particularly starting with 3.0 they're implementing CMS-necessary features (as opposed to blogging functionality only). Another reason you'll definitely want to upgrade.
Good luck... keep an open mind!
To Ipstenu - true... but typically the theme upgrades list in the changelog which files were changed, and for what reason -- and I use Beyond Compare to see what was added and decide if I want to manually make the changes. That of course requires a higher level of comfort with code so I can't recommend that for everyone, but so far it's worked for me.
Still, point taken, and it is a valid point. :)
Yeah, I just make child themes off the commercial. Actually, I went so far as to remove the editor from the menu in most of my sites. I never use it.
This topic has been closed to new replies.