WordPress.org

Ready to get started?Download WordPress

Forums

TWENTY-TEN:Adding Dropdown option to comment form on home.php (3 posts)

  1. grimmothy
    Member
    Posted 3 years ago #

    Hello everyone,
    Doing my best to Show/Hide layers like it done at THIS theme. But having trouble with the javascript and it understanding to do a dropdown on comments and it conflicting with other posts on that particular page, in that it's not "dropdown-ing" the comments on the other posts besides the newest post... kinda weird. Does it have to do with the loop language?

    I am currently adding this code in my loop-index.php

    <input type=button name=type value='Add Comment' onclick="setVisibility('newcomment', 'inline');";>
    <input type=button name=type value='Nevermind...' onclick="setVisibility('newcomment', 'none');";>
    
    <div id="newcomment">
    
    <?php comment_form(); ?>
    </div>
  2. grimmothy
    Member
    Posted 3 years ago #

    Here is my website for the example

    brittanymirabal.com

  3. dains
    Member
    Posted 3 years ago #

    For anyone still looking for an answer, I was looking for a way to show / hide comments as well. I found a Show/Hide Commentform plugin and modified it to remove the unidentified encoded image (I'll send a donation to the guy np, but nothing encoded gets embedded in my site). It works fine, but I also found this link to a StackOverflow solution which looks like a much simpler and easier-to-modify answer. I haven't tested it, but it's here for your perusal - http://stackoverflow.com/questions/3090267/how-do-i-hide-the-wordpress-comments-form.

Topic Closed

This topic has been closed to new replies.

About this Topic