• I want to place function inside <div class="reply"></div>
    This is the function <?php comments_like_dislike($comment_id);?>

    Trying to do this I noticed that I would edit the cores as in my theme comments are simply just called from core and styled, but my like and dislike buttons are above reply button, and I want them to be inline and css did not helped here, or there is too much work and tweaks for this.
    I tried using jQuery appendTo() but it creates a row of duplicated content, so that was not a solution.

    So, how do we actually do this by functions.php function, if we want to create custom single comment function customizing the core so result is like….

    <div class="reply">
    Reply Button
    Like and Dislike Button
    </div>

    or

    <div class="reply">
    Like and Dislike Button
    Reply Button
    </div>

    I’m interested in this not only because of this single problem, but for future purpose too.

    • This topic was modified 2 years, 7 months ago by mllapan.
    • This topic was modified 2 years, 7 months ago by mllapan.
    • This topic was modified 2 years, 7 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to hook function for single comment?’ is closed to new replies.