I am using comment_form() in my comments.php file. I need to relocate the default location of the cancel button from above the reply form to below and next to the submit button. comment_form does not seem to provide a facility for this.
i tried using comment_notes_after and coding my own cancel button, but it uses a unique id for hiding when the cancel button is clicked. you can’t duplicate id’s and it breaks the javascript for hide/show the form.
I ended up using jQuery to sort this for me. Sorting through the WP codebase is a headache. They could use a doc spec similar to jQuery’s where there are lots of examples of things people are commonly trying to accomplish.
(@mrtsherman)
13 years, 1 month ago
I am using comment_form() in my comments.php file. I need to relocate the default location of the cancel button from above the reply form to below and next to the submit button. comment_form does not seem to provide a facility for this.
i tried using comment_notes_after and coding my own cancel button, but it uses a unique id for hiding when the cancel button is clicked. you can’t duplicate id’s and it breaks the javascript for hide/show the form.