• Hello, On the index page, under every post there is a “1 Comment ?” link

    Are there a plug in, that can make a comment div expand out and show the comment when clicked without reloading or going to comment page?

    Thanks!!

Viewing 1 replies (of 1 total)
  • I would suggest using jquery.

    Here is an example.

    <h3 class=”comment-link”>View Comments</h3>
    <div class=”comments-slider” style=”display:none;”>
    //calls your comments.php
    <?php comments_template(); ?>

    </div><!– end comments-slider –>
    <script type=”text/javascript”>

    $(document).ready(function() {
    $(‘.comments-slider’).hide();
    $(‘.comments-link’).click(function() {
    $(‘.comments-slider’).slideDown(‘slow’);
    });
    });
    </script>

Viewing 1 replies (of 1 total)
  • The topic ‘comment ajax?’ is closed to new replies.