Support » Fixing WordPress » help with some simple code in comments.php

  • In my comments.php it has this:

    <?php wp_list_comments(array('type=comment','reply_text'=>'<span class="reply-box">Reply</span>')) ; ?>

    but i want to have control of some aspects of comment styling i can’t do simply with css. I found this:

    <?php wp_list_comments('type=comment&callback=mytheme_comment'); ?>

    Now, how do i combine the two properly? Yep. i’m a noob 🙂


Viewing 4 replies - 1 through 4 (of 4 total)
  • surely this isn’t hard, someone help me out please!

    Have you added a mytheme_comment function into your functions.php?

    Take a look towards the bottom of this page:

    ah, maybe i didn’t explain this properly. I know what to do with the functions.php, etc, it’s just that my wp_list_comments above already had some code in there to remove a reply button on thread posts.

    My problem is how to keep that AND add the “type=comment&callback=mytheme_comment” commands.

    An example, albeit incorrect, but it shows what i’m after):

    <?php wp_list_comments('type=comment&callback=mytheme_comment', array('type=comment','reply_text'=>'<span class="reply-box">Reply</span>')) ; ?>


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘help with some simple code in comments.php’ is closed to new replies.