Søren Wahlgren
asked 7 years ago

I want to replace the login box (see image) with social login. I have the code for the social login so I just need to know what to replace. I found an old question asking the same but it seems something has changed so the answers wasn’t useful.

This is what I want to replace

1 Answers
answered 7 years ago

To resolve this issue, you can open the wp-content -> plugins -> dw-question-answer -> inc -> Posts -> answer.php file then find the following code (somewhere at the bottom of the file):

<h3 class="dwqa-title">
            printf( '%1$s %3$s %4$s', __( 'Please login or', 'dwqa' ), wp_registration_url(), __( 'Register', 'dwqa' ), __( 'to Submit Answer', 'dwqa' ) );
    <div class="login-box">
        <?php wp_login_form( array( 'redirect'  => get_post_permalink( $question_id ) ) ); ?>

Hope this helps !

Powered by DW Question & Answer Pro