Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Comments, trackbacks & pings »

Show and Hide comments using 'Show Comments' link

Old Feb 17, 2010, 03:48 AM
3 posts · Feb 2010
Good day folks,

I am putting together my site using Atahualpa. I am amazed on a daily basis of just how easy this theme makes configuring my outlays.

There is one little thing I just can't seem to figure out, and I can't find a plugin either. From the little bit of info on the Codex site on something almost simmilar, they mention that it is theme dependend and that the core WP does support such options if called for.

What I would like to do is simply hide all comments to post AND pages throughout the site. I just hate rocking up at a site with just a short post and 99% of the rest of the time loading the thing was spent loading hundreds of comments... On my own blog I would like to hide the comments and the comment box. At the bottom of the post/page entry should simply be a link or whatever on which the visitor could click which would say something like: "Click here to comment to this post and/or view all the comments..."

If there is a some code I should alter or even a plugin anybody out there might know of which would make this happen, I would be most greatfull for your help.

Warm regards,

Old Feb 17, 2010, 05:48 AM
juggledad's Avatar
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
There is nothing 'built-in' to the theme to do what you want. You could probably code a new page and configure it how you want.

Do you know that you can LIMIT the number of comments that are displayed befor a page break occurs (see dashboard->settings->discussion-> Break comments into pages with __ top level comments per page and the __ page displayed by default
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Feb 17, 2010 at 06:04 AM.
Old Feb 17, 2010, 06:01 AM
3 posts · Feb 2010
Hi there juggledad,

Thanks for your reply and sugestion. For a moment I did actually forget about that trick. I suppose in the end that might be my way out or perhaps just move any discussions to Facebook and keep the CMS style site clean...will have to considder the pro's and con's.

Kind regards,
Old Feb 17, 2010, 11:06 AM
Rashell's Avatar
67 posts · May 2009
there's a plugin to hide/show comments called... "Hide or Show Comments". It'll give you a little <?php blurb to add to the loop.
Old Feb 17, 2010, 11:51 AM
3 posts · Feb 2010
Hi Rashell,

Thanks for that tip, I did actually look at it earlier on as an option, but the PHP blurp spoke of putting it into a theme file called single.php which does not exist in Atahualpa's theme directory. Anyhow, you gave me some new motivation and I found the solution which I'll share here, hopefully someone else on the trail of a simmilar solution could benifit from it.

It downloaded the Hide or Show Comments plugin. I was worried at first and did not give it a fair chance spesifically because it seems like an old plugin which was last updated 2007-10-23 !!!

Anyways. The readme say to replace
<?php comments_template(); ?>
<?php hideshowComments();?>
in a theme file called "singe.php"

The file does not exist, but I did find and succesfully replace the entry in a file called: "bfa_post_parts.php" in the "functions" folder of Atahualpa theme. The entry is almost right at the bottom, line 236. The php tags are not neccessary so I just replaced the words
That's it! It works pretty good for such a old plugin LOL :P Now I am just going to make it look a bit prettier with some CSS!

Thanks once more for pushing me back towards this very handy little plugin Rashell!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide the footer on a static page while show them on posts olivier2010 Post-Kicker, -Byline & -Footer 1 Nov 2, 2009 06:41 PM
[SOLVED] BUGFIX - 343 - Comments show 'Leave a Comment' even when comments are clos juggledad Old Version fixes and change logs 1 Sep 29, 2009 07:07 PM
[SOLVED] Link images in bloroll sidebar ALSO show the title of the link sine Sidebars & Widgets 6 Sep 7, 2009 03:11 PM
how do i get comments to show up on homepage for each post??? drewjones Comments, trackbacks & pings 2 Apr 15, 2009 07:04 PM
want to show existing comments under article frankhamm Comments, trackbacks & pings 1 Apr 2, 2009 10:38 AM

All times are GMT -6. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.