Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

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


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Feb 17, 2010, 03:48 AM
Alexa
 
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,

Alexa
  #2  
Old Feb 17, 2010, 05:48 AM
juggledad's Avatar
juggledad
 
22,269 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
  #3  
Old Feb 17, 2010, 06:01 AM
Alexa
 
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,
  #4  
Old Feb 17, 2010, 11:06 AM
Rashell's Avatar
Rashell
 
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.
  #5  
Old Feb 17, 2010, 11:51 AM
Alexa
 
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
Code:
<?php comments_template(); ?>
with
Code:
<?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
Code:
comments_template();
with
Code:
hideshowComments();
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!

Bookmarks

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 02:26 AM.


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