• Hello,

    Trying to change the comments title “Leave a reply”, which you would think should be simple but…

    There are a lot of solutions out there if the comments are called using “comment_form()”, but non that I’ve found using “comments_template()”.

    And if I change “comments_template()” to “”comment_form()” that changes the whole comments markup and the styles that are in place.

    So anyone have any ideas??

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • comments_template() is a function which calls comments.php in which you should be able to find comment_form()

    https://codex.www.ads-software.com/Function_Reference/comments_template

    https://codex.www.ads-software.com/Function_Reference/comment_form

    what theme are you using?
    does the theme have a comments.php template?

    Thread Starter Dave

    (@deeve007)

    No, so it’s calling the default WP comments form.

    I’ve tried copying the WP default template from wp-includes into the theme folder, then calling it using “comments_template( ‘/comments.php’ )” as outlined in the codex. Not working doing that, doesn’t see any changes I make so mustn’t be calling my custom template.

    And if I change “comments_template()” to “”comment_form()” that changes the whole comments markup and the styles that are in place.

    Isn’t comments_template() a filter to the WordPress function comment_form() used to vary it as desired within a theme or plugin… ??

    That said, you have noted that you found comments_template() somewhere. Where did you find it? Can you use Pastebin to share the complete code and where in the theme it is?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change comments title "Leave a reply" using comments_template()?’ is closed to new replies.