WordPress.org

Ready to get started?Download WordPress

Forums

help with some simple code in comments.php (5 posts)

  1. neologan
    Member
    Posted 4 years ago #

    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 :)

    Thanks!

  2. neologan
    Member
    Posted 4 years ago #

    surely this isn't hard, someone help me out please!

  3. alism
    Member
    Posted 4 years ago #

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

    Take a look towards the bottom of this page:
    http://codex.wordpress.org/Template_Tags/wp_list_comments

  4. neologan
    Member
    Posted 4 years ago #

    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>')) ; ?>

  5. neologan
    Member
    Posted 4 years ago #

    anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.