PDA

View Full Version : The line: Comments Off on a page



BigAlClub
03-22-2011, 02:10 PM
Hi There,

How can I remove "Comments Off" from a page? Specifically my homepage?

Thank you,

BigAlClub

Dan Nickerson
03-23-2011, 09:47 AM
Check the Socrates > Language tab in 2.2 It's now an option.

Dan Nickerson
03-23-2011, 09:48 AM
Actually, that's for comments are closed sorry.

You can edit it out of index.php


Remove this line


| <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>

relisys
03-26-2011, 09:27 AM
I removed the line "| <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>" from index.php, but the words "Comments Off" still appear at the bottom of the page. Do I also need to do something else? Thanks.

Dan Nickerson
03-26-2011, 10:12 AM
Can you share a link?
Do you have a caching program running?

relisys
03-26-2011, 10:38 AM
The page is http://thepensioncoach.com/about-us/.
I'm not a programmer, but as far as I know, there is no caching program running. After I deleted the text you recommended from Index.php, this is what remained before and after the deleted text: <div class="postAuthor">By <?php the_author_posts_link(); ?> on <?php the_time('l, F jS, Y') ?> *** </div>. The *** shows the location of the deleted text. Hopefully I deleted the right text and not too much or too little. Thanks.

Dan Nickerson
03-26-2011, 10:49 AM
Forgive me.. we've had some confusion over this.

This is the line you need to remove.


<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'socrates' ), __( '1 Comment', 'socrates' ), __( '% Comments', 'socrates' ) ); ?></span>

relisys
03-26-2011, 11:21 AM
That worked. Thanks.

alpine1
03-26-2011, 10:14 PM
Hey Dan: Thanks for all the hard work on the new version- which I downloaded... but I was under the impression that comments link could be controlled separately for each posts and pages. I would like to turn off comments on pages and went to Socrates/layout and unchecked the box that says: Show author, date and comments link below title on all pages.... to no avail -still showing comments below title and/or the entire page content.( only installed WP super cache and is not enabled yet)
Would this then become a WP issue if can't resolve this within the Socrates panel?? I went to Settings/discussion and kept the box checked where it says: Allow people to post comments on new articles.. but I would think this would relate to posts only. If this still has to be handled by going into index.php to edit I would like to suggest a button on the next version to address this(which I thought you guys did in this last version).
Most people will want to NOT have comments enabled on pages and HAVE comments enabled on post- but ultimately have control in all cases how comments links are displayed.
I really the way Discus displays 'see comments' link for posts.. it shows it at the top right below the title (Socrates will move the comment link down the page as content fills in on pages) and also the bottom of the post as well....
I think most want the look of a html for pages and blog for post... that would probably be a safe bet.
Here is a great Discus blog example:
http://www.sovereignman.com/expat/monty-python-and-the-world-economy-tis-but-a-scratch#comments
Please advise on the best way to put to rest this issue( or maybe it already has been put to rest- and I just don't what I'm talking about....)
Thanks
PS_ If I do edit the php will this make it so that comment will not show up at all in either posts or pages?

Alan
06-21-2011, 07:28 PM
Can someone help me locate the index.php area to delete the code dan refers to. I would also like to eliminate the comments box.

Thank you.

Dan Nickerson
06-21-2011, 07:59 PM
Just type crtl-f and type in any word from the code to locate it in index.php

Alan
06-22-2011, 04:24 AM
Is this from the index.php file in cpannel?

Dan Nickerson
06-22-2011, 07:40 AM
WP Dashboard > Appearance > Editor

RayShim
04-25-2012, 08:06 AM
Does this method works the same for Rel 3.0? I created a website with 2.x and this method works. Now I am creating a new website with Rel 3.0 and I can't get it to work.

Dan Nickerson
04-25-2012, 02:02 PM
In 3.0 we changed it so it should not appear below the post or page. If you mean below the title, you can disable the author line in Socrates > Settings.

In 3.0+ goto Appearance > Editor >

In

index.php
page.php
single.php

Find.

<?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?>

and change to

<?php comments_popup_link ( 'No Comments', '1 Comment', '% Comments', 'noComOff', '' ); ?>

RayShim
04-25-2012, 02:36 PM
Thanks! That did it.

Dougi
11-02-2012, 05:14 AM
Hi,

For Soc 3.04:
I unchecked "Show author, date and comments link below title on all pages" and it doesn't show...
But it still shows the "Leave a Replay" Box at the bottom.

How to fix this?
Thanks

Dan Nickerson
11-02-2012, 08:38 AM
Can you share a link?
Do you have a caching plugin enabled?
Did you refresh your browser?

Dougi
11-17-2012, 02:07 AM
Can you share a link?
Do you have a caching plugin enabled?
Did you refresh your browser?

http://geldanzeiger.de/partnerprogramme/
no caching plugin
refreshing doesn't help - I even tried with another browser

Thanks for support

Dan Nickerson
11-17-2012, 08:49 AM
Sorry, for some reason I didn't read your question right.

If you want to remove "Leave a Reply" then you have to uncheck the "allow comments" box in your page editor. If you don't see it goto Screen Options at top and check "discussion"

Dougi
11-17-2012, 09:44 AM
Thanks a lot Dan,
for some reason the Screen Options in the page editor didn't come to my mind.

Have a nice weekend!