• 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.

Viewing 1 replies (of 1 total)
  • Thread Starter mrtsherman

    (@mrtsherman)

    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.

    $("#cancel-comment-reply-link").insertAfter(".comment-form-comment");

Viewing 1 replies (of 1 total)
  • The topic ‘Relocating cancel button in comment_form’ is closed to new replies.