• Resolved UltimateSites

    (@ideafaktory)


    Hi, I really like the plugin! More elegant than any of the others I’ve tried. One question is how do I edit the comment template to show the social login options to users who need to log in? I’m fairly novice at php, so a step by step would be appreciated.

    Ideally, I’d like this to look well-integrated, not “bolted on” (show the icons right below or next to where it says “You must be logged in to post a comment.” My new WP site is up at https://ideafaktory.com.

    Thanks for your help!

    https://www.ads-software.com/extend/plugins/wordpress-social-login/

Viewing 1 replies (of 1 total)
  • As I understand, login buttons should displays under comment form by defaults. And I was wondered when haven’t saw them here. Later I went to “Settings” -> “Discussion” and discovered that buttons displays if option “Users must be registered and logged in to comment” is checked out. Probably they shows only if form with inputs realy showed.
    I solved this problem by this way:
    In comments.php replace this string:
    comment_form();
    by this:

    if( function_exists('wsl_render_login_form') && comments_open() && ! is_user_logged_in() ) {
    		wsl_render_login_form();
    	}else{
    		comment_form();
    	}

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WordPress Social Login] How to seamlessly integrate into comment form?’ is closed to new replies.