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 »

Hide comment box until needed


  #1  
Old Dec 6, 2013, 02:26 PM
Grum
 
49 posts · Feb 2010
Scotland
Forgive me if this is a really basic question, but I'm finding it rather confusing.

I'm using comments on pages, and I want to stop the comment reply form appearing until needed, but the 'Leave a Reply' form box displays on the pages regardless, and I can't figure out how to make it appear only when someone wants to post a comment.

I've enabled #'allow comments on pages' and have styled the footer for 'page' pages in ATO settings: %comments('Leave a comment', 'Comments (1)', 'Comments (%)', 'dontshow')%
That all seems to work and I can see the footer bar, but the form box is also showing.

Is there a way to stop the box displaying until needed? It seems like a really basic requirement; am I just being dense here?
__________________
Grum
ATA 3.7.24/ WP 4.9.4
  #2  
Old Dec 6, 2013, 02:36 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Try this and see if it will do what you want. Add the following to the CSS Inserts options
HTML Code:
div#respond form {
    display: none;
}
div#respond:hover form {
    display: block;
}
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 6, 2013, 04:27 PM
Grum
 
49 posts · Feb 2010
Scotland
Wow, thanks for the quick response, JD.

That kind of works, it hides the main box but still shows the 'Leave a Reply' bit, with the box appearing when hovered over (which is pretty neat actually).
I was aiming for hiding the whole thing and just using the link in the page footer in the ATO Post/page info items.
__________________
Grum
ATA 3.7.24/ WP 4.9.4
  #4  
Old Dec 6, 2013, 07:15 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
off hand I don't know how you are going to do that unless you write a script (which I can't help you with). The link is just an on page link to the response area which 'is' the form. You will need a jscript that looks for the mouse click on the link you want to target and it will change the visibility of the form making it be shown.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 7, 2013, 05:48 AM
Grum
 
49 posts · Feb 2010
Scotland
OK, thanks for the explanation JD, that helps me understand how it works. Writing a script is somewhat beyond my abilities, but I can try styling the comment box.
__________________
Grum
ATA 3.7.24/ WP 4.9.4

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Name/Email/Comment field styling and existing comment link colors fcitino Comments, trackbacks & pings 4 Mar 4, 2013 01:37 PM
PATCH 373-05: Enhancement - only load 'comment-reply.js' on pages where it is needed juggledad Old Version fixes and change logs 2 Jul 12, 2012 10:42 AM
[SOLVED] Website in comment form leads to author name as a link in the comment list --yeah--wow Comments, trackbacks & pings 2 Jun 2, 2011 09:34 PM
Comment spacing help needed billy1234 Comments, trackbacks & pings 3 Sep 28, 2009 11:25 AM


All times are GMT -6. The time now is 11:38 AM.


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