After using the static page plug-in cos-html-cache generated by wordpress, after each article is commented, the information of the previous reviewer is always displayed, including the information displayed when the cookie is cleared: welcome to XXX again. If the cookie is not cleared, click the name and the input box to directly display the name and email address of the previous reviewer. Once the cookie is cleared, only welcome to XXX again rather than the name and email boxes are displayed, after clicking the name, each input box has no value. In desperation, I deleted several js files. I hope this method can help you.
Find comments. php, the Comment file under wp-contenthemes, and find the display: Welcome to the div layer again, and delete it directly. I will delete the following. You can check your code.
<! -Start with visitor 1->
<? Php if ($ comment_author! = ""):?>
<Script type = "text/javascript"> function setStyleDisplay (id, status) {document. getElementById (id). style. display = status ;}</script>
<Div>
<? Php printf (_ ('Welcome to visit again <strong> % s </strong>. '), $ comment_author)?>
<Span id = "show_author_info"> <a href = "javascript: setStyleDisplay ('author _ info',"); setStyleDisplay ('show _ author_info ', none '); setStyleDisplay ('hide _ author_info ', ");"> Change User Name </a> </span>
<Span id = "hide_author_info"> <a href = "javascript: setStyleDisplay ('author _ info', none'); setStyleDisplay ('show _ author_info ',"); setStyleDisplay ('hide _ author_info ', none'); "> cancel the change </a> </span>
</Div>
<? Php endif;?>
<! -End of visitor 1->
There is also the following section:
<! -Guest 2 start->
<? Php if ($ comment_author! = ""):?>
<Script type = "text/javascript"> setStyleDisplay ('hide _ author_info ', none'); setStyleDisplay ('author _ info', none'); </script>
<? Php endif;?>
<! -End of visitor 2->
OK. Just solve the problem and go to bed.