Home  >  Article  >  Backend Development  >  How to implement "Cancel reply" button in wordpress - javascript -

How to implement "Cancel reply" button in wordpress - javascript -

WBOY
WBOYOriginal
2016-08-23 09:17:55974browse

Question

In the comment list, after clicking the "Reply" buttoncannot be displayed"Cancel reply" button

Because the web page will refresh after clicking the "Reply" button, it cannot be done using JavaScript.

Please ask the masters how to solve it

Reply content:

Question

In the comment list, after clicking the "Reply" buttoncannot be displayed"Cancel reply" button

Because the web page will refresh after clicking the "Reply" button, it cannot be done using JavaScript.

Please ask the masters how to solve it

WordPress comments basically use Ajax, so that when you click the "Reply" button, the web page will not be refreshed. Your Baidu "comments-ajax.php" and "comments-ajax.js" basically use the same template. There is a "Cancel reply" button in this template.
My website is like this: Chenghang Xiansen
You can feel free to enter an article with comments to try.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn