简体   繁体   English

WordPress 社交登录未出现在注册页面上

[英]Wordpress Social Login not appearing on Registration Page

I've installed the 'Wordpress Social Plugin' on my website to allow people to register/login to the website using Facebook oAuth.我在我的网站上安装了“Wordpress 社交插件”,以允许人们使用 Facebook oAuth 注册/登录网站。 The plugin works and appears on the login page but I'm unable to get it to appear on the registration page.该插件工作并出现在登录页面上,但我无法让它出现在注册页面上。 The plugin suggests adding the following line of code to the page that we would like to require the option:该插件建议将以下代码行添加到我们希望需要该选项的页面中:

<?php do_action( 'wordpress_social_login' ); ?>

I've tried adding it to the 'wp-login.php' as well as to includes/general-template.php - This caused it to appear twice on the login page.我已经尝试将它添加到'wp-login.php'以及includes/general-template.php - 这导致它在登录页面上出现两次。

Confusion!混乱!

First of all, and providing your theme supports it, it might be a good idea to try to use a sidebar or widget area to output the plugin's content.首先,如果您的主题支持它,那么尝试使用侧边栏或小部件区域来输出插件的内容可能是个好主意。

If not you can put the do_action();如果没有,你可以把 do_action(); code into the theme file that is rendering the page.代码到呈现页面的主题文件中。

It's impossible to give any acute answers without seeing some code though.但是,如果没有看到一些代码,就不可能给出任何尖锐的答案。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM