Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

评论验证不支持 puock 主题 #9

Open
kinguler opened this issue Jan 24, 2022 · 9 comments
Open

评论验证不支持 puock 主题 #9

kinguler opened this issue Jan 24, 2022 · 9 comments

Comments

@kinguler
Copy link

如何实现支持 puock 主题 评论验证?

@kinguler
Copy link
Author

image

@kinguler
Copy link
Author

开启验证后无法评论
image

无法显示
image

@stevenjoezhang
Copy link
Owner

收到,我研究一下这个问题

@kinguler
Copy link
Author

https://github.com/Licoy/wordpress-theme-puock
puock 主题地址

@stevenjoezhang
Copy link
Owner

看上去是因为这个主题没有支持 comment_form action,所以验证码不显示
我找了一个其他主题的例子,你对照着改改代码应该就行:
https://github.com/seatonjiang/kratos/blob/7b8ceffeba693b0cc02721769b578a60112e0c6f/comments.php#L83

@kinguler
Copy link
Author

image
是这个吗?然后替换那段代码?

@stevenjoezhang
Copy link
Owner

<?php do_action('comment_form', $post->ID); ?> 加到</form>之前就行,比如这里。

截屏2022-01-24 下午10 40 49

功能应该是可用的,如果觉得不好看可以自己改改 CSS

@kinguler
Copy link
Author

image

测试可用,求教CSS 如何改,谢了

@kinguler
Copy link
Author

请教 你这个验证码 CSS 应该在哪里改?如何改?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants