30.10.11

Turn off WordPress Comments

A screenshot of the default WordPress theme.Image via Wikipedia


http://wordpress.org/support/topic/turn-off-comments-on-pages-by-default

NOTE: LINES OF CODE NOT SHOWING UP. WYSIWYG DELETES SCRIPT

Don Spark
Member
Posted 2 years ago #

Hi,

Simple question:

How do I make comments "turned off" by default?

I am shaping up a WP CMS for non-technical users. They shouldnt have to worry about erroneous check boxes.

Thanks!

Don Spark

TransPersonal
Member
Posted 2 years ago #

Settings >> Discussion >> uncheck "Allow people to post comments on new articles"

This applies to new posts that you will publish from now on. To disallow comments from already publish posts:

Posts >> select them all and "Edit" under bulk actions and hit apply >> choose "do not allow" next to comments and hit update posts.

mercime
Member
Posted 2 years ago #

What TransPersonal said. And, if you want to make it pseudo-permanent, you can delete the comments tag in single.php (and in page.php if you have one there)from your theme.

S.K
Member
Posted 2 years ago #

The topic title talks about "pages". Assuming that you want to continue have discussion on your blog posts but turn it off only from "pages, you'll have to remove the code snippet "" from the page.php of your theme, as mercime advised.

If your theme uses some other template for pages, you find it out and snip out the line.

S.K

Don Spark
Member
Posted 2 years ago #

I just want to turn it off by default...on pages only. I want blog posts to have comments by default but not pages. The checkbox has a checked by default. I want it un-checked by default for pages.

I am using the hybrid theme framework. That theme has a page.php which has this only this referring to comments


Is something in there putting a check in the box or does that exist somewhere else in wordpress?

We are going to be making lots of pages with nubies.

Thanks!

mercime
Member
Posted 2 years ago #

If you want to have comments in your blog posts, then leave the comments on in Settings > Discussion. Then in order to disable comments in Pages, delete in page.php

S.K
Member
Posted 2 years ago #

You can remove that line of code if you want to disable comment on pages.

Instead you can "comment out" the line of code thus:



You can remove the "//" part when you want to turn on comments on pa

Enhanced by Zemanta

29.10.11

PHP Web Design 101

The Most Powerful Way to Build Your Website



Elementary explanation of basic HTMLPHP website structure:
First defining DOCTYPES and META data then

Main 3 parts of every page:
HEADER header.php
FOOTER footer.php
SIDEBAR sidebar.php

connect together pages with main content
via php statement
PHP INCLUDE:

in at least one required
INDEX PAGE index.php

may add other pages of content with PHP INCLUDES of 3 main parts

Also gives good basic explanation of how to use CASCADING STYLESHEET, style.css,  to format entire site.

Lots of beginners tips to fix common problems like

Use MIN-HEIGHT when sizing the elements that aren't fixed height.
Zeroing MARGINS and PADDING for body selector.
Adding AUTOFLOW to get wrapping parent divs to stretch across floating child divs.
Add 'wrapper' class with AUTO MARGINS around each div you need to CENTER

Detailed explanation of how to style UNLIMITED LIST of links into a horizontal list for navigation with
DISPLAY:INLINE
TEXT-DECORATION NONE removes bullets
OVERFLOW:HIDDEN keep color from flowing beyond nav bar boundaries.

Additional videos on http://www.johnmorrisonline.com
Enhanced by Zemanta

20.10.11

Google Analytics Video and Lessons



http://www.google.com/support/analytics/bin/static.py?page=guide.cs&guide=19779&topic=19783&answer=138517


Google Analytics IQ Lessons
Related Posts with Thumbnails