I’m using WordPress Social Login and trying to figure out where to insert this code into td_login_widget.php so that it shows up in the form?
https://drive.google.com/file/d/0Bzax_bFhmTjZbDV1M0dOc2x0ZVU/view?usp=sharing
Shows up in wp-login:
https://drive.google.com/file/d/0Bzax_bFhmTjZWVU2QVVIMVAtRnM/view?usp=sharing
This is the code: <?php do_action( ‘wordpress_social_login’ ); ?>
I’ve able to login no problems using a widget and placing it directly on the home page.
Thanks.
Hi,
Please add it using the do_shortcode() function like this: http://screencast.com/t/a8B0TRtck
Here you have the td_login_widget.php file code with the WSL added: http://pastebin.com/FgFmSznX
Or just add this line: do_shortcode('[wordpress_social_login]') like shown in the screenshot above.
Thanks
Thanks Lucian, that worked great but how do I move the “log in” button down a bit?
https://drive.google.com/file/d/0Bzax_bFhmTjZeXR0enlOT01OR00/view?usp=sharing
Thanks again!
Hi,
You can do it using this custom css, add it in theme panel > custom css: http://screencast.com/t/PQZDK6ktBnP
.td-login-wrap .td-login-info-text {
margin-top: 40px !important;
}
.td-login-wrap .td-login-button {
bottom: 10px !important;
}
Thanks
Hi Lucian,
In Version 6.2, where should we put this code?
Please advise, many thanks in advance.
Cheers.
Hello there,
I was able to add my login box by adding the following code on line 77
<div class=”td-login-info-text”>‘ . __td(‘Forgot your password?’) . ‘</div>’ . do_shortcode(‘[userpro template=login]’) . ‘</div>
It sort of works but the old login widget still appears on top of mine, Can you please tell me how can I make it dissapear?
Thanks
I decided to put the plugin Social Login on both the login and register tabs.
https://drive.google.com/file/d/0B_wGP-lpxx5QdGV6dENDdGRfSWs/view?usp=sharing
I did what Lucian said to resize the box and “submit” button through the custom css. It worked when I only had the plugin on the login page but stopped responding when I put it in the register tab.
https://drive.google.com/file/d/0B_wGP-lpxx5QdnpLejFUMmxlV1U/view?usp=sharing
Also, the page seems to load slower when I had the plugin in the “login/join” popup widget. Can you check to make sure I did the coding right?
Would be nice to have this implemented by default for social login on the modal. Then we wouldn’t have to add each time we update theme or have to use child theme if we did not want to. On Newsmag theme too.
-
This reply was modified 10 years by
doucare1971.
Hello Devs,
Are these method still valid? I have tried to implement the process that Lucian suggested in his reply but the screenshot that he had used to show the location is now not working and is invalid. Here is his screenshot link: http://screencast.com/t/a8B0TRtck
I am using WP Facebook Login ( Link ) and it supports following code :
<?php do_action('facebook_login_button');?>
It also supports the following shortcode:
[fbl_login_button redirect="" hide_if_logged=""]
Please let me know where should I add this code? Which code should I insert there the php code or the shortcode? As some commenter suggested above, it should be added here: public_html/wp-content/themes/Newspaper/parts/header/top-menu.php
but then the guy who insitiated this thread said that the code should be added “td_login_widget.php”
I am super confused. This is very important thread and have been referred by many of you under various posts. It will be really great if you can update the solution based on the current requirement.
Thank you very much.
Hello nano2408,
Replied via another topic here -> https://forum.tagdiv.com/topic/adding-facebook-login-button-to-our-ajax-based-login-popup/
Thanks.