Trigger with Popup or Modal
-
How to open social login form in popup or modal.
-
Hello,
you can use HTML/JavaScript like this:
<a id="social_login_link">Login</a><script type="text/javascript"> var _oneall = _oneall || []; _oneall.push( ['social_login', 'set_providers', ['facebook', 'google', 'twitter']], ['social_login', 'set_callback_uri', window.location.href], ['social_login', 'attach_onclick_popup_ui', 'social_login_link'] ); </script>-
This reply was modified 8 years, 10 months ago by
Claude.
Sir, I tried this but it’s not working.
I added this script code in header.
<script type="text/javascript"> var _oneall = _oneall || []; _oneall.push( ['social_login', 'set_providers', ['facebook', 'google', 'twitter']], ['social_login', 'set_callback_uri', window.location.href], ['social_login', 'attach_onclick_popup_ui', 'social_login_link'] ); </script>and to test this add this link below on page. But it’s not working.
<a id="social_login_link">Login</a>Can you give me instructions.`
-
This reply was modified 8 years, 10 months ago by
actionhoney.
Hello,
please post a link to the page where I can see the code that you have added.
Sir, here is https://edorb.com/test/. I added code in post to test. But it’s doing nothing.
Sir did you check the page. I am waiting for your response.
Hello,
please remove the JavaScript from your header and add it directly after your link:
<a id="social_login_link">Login</a> <script type="text/javascript"> var _oneall = _oneall || []; _oneall.push( ['social_login', 'set_providers', ['facebook', 'google', 'twitter']], ['social_login', 'set_callback_uri', window.location.href], ['social_login', 'attach_onclick_popup_ui', 'social_login_link'] ); </script>-
This reply was modified 8 years, 10 months ago by
Claude.
Sir, I want to show you login link in wordpress navigation how can i use this code there.
and to test i added code as you said https://edorb.com/test/ plz look here it’s still not working.
Hello,
in your blog the OneAll library.js is missing.
Is the plugin currently installed and enabled? Please use the “Autodetect” and “Verify” buttons in the Social Login settings and make sure that both display a green message.
-
This reply was modified 8 years, 10 months ago by
Claude.
it’s working thank u sir.
-
This reply was modified 8 years, 10 months ago by
actionhoney.
Hello,
thank you for the update, I’m glad to hear that it works now.
Do not forget to leave us your review if we could help you:
https://wordpress.org/plugins/oa-social-login/#reviewsRegards,
-
This reply was modified 8 years, 10 months ago by
The topic ‘Trigger with Popup or Modal’ is closed to new replies.