Social Login

Posted in: Newsmag
Post count: 28

Hi, I tried following this previous thread: https://forum.tagdiv.com/topic/where-to-put-this-code/

But that was for Newspaper. I am trying to do the same thing with Newsmag using OneAll social login, but cannot figure it out. The do_shortcode doesn’t seem to be working. The do_action works, but displays in top menu and not within the modal box:

<div class=”td-login-info-text”>‘ . __td(“Forgot your password?”) . ‘</div>’ . do_action( ‘oa_social_login’ ) . ‘</div>

How can I please add this to Newsmag?

Thanks!

Post count: 6600

Hi,

Make sure you use this method: https://forum.tagdiv.com/topic/where-to-put-this-code/#post-23969 and add it via shortcode and use echo before the the do_shortcode() function, like this: echo do_shortcode('[your shortcode here]')

Thanks

Post count: 28

Hi Lucian

Thanks for the reply. However, I am still a little confused to the actual placement. I am trying to show them after this:

<div class="td-login-panel-title">' . __td("Welcome! Login in to your account") .'</div>

How would I write it after that?

Thanks!

Post count: 6600

Hi,

Make sure you add it like this: http://screencast.com/t/q6y00M2JYwx and also make sure you empty cache and check this without any plugins active. As you can see in the screenshot below I have also tested this and works fine.
Add the css pasted below or style it yourself as you like:

.wp-social-login-connect-with {
display: inline-block;
position: relative;
top: -10px;
}

.wp-social-login-provider-list {
display: inline-block;
}

.wp-social-login-provider-list img {
display: inline;
}

Result: http://screencast.com/t/j9ZGOOH54jJu

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.