Home > Backend Development > PHP Tutorial > How to implement 'Cancel reply' button in wordpress - javascript -

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

WBOY
Release: 2016-08-23 09:17:55
Original
1002 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template