Chandra Dev Borah
asked 8 years ago

Hi DW Team,

I wanted to know how can i redirect my users from DW "Register" or "log in ask a question" to my front end login page instead of default wordpress login/register page.

Thanks

1 Answers
DominicStaff
answered 8 years ago

You can open up the answers.php file in plugins/dw-question-answer/inc/templates/default folder, find the following code (somewhere at the bottom of the file):

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

and replace it with your new social login code.

borah
replied 8 years ago

Hi Dominic,

Thanks for quick reply. I am little bit confused, do i have to replace my site login/register url in the [site_url( ‘wp-login.php?action=register’ ), ] or anything else. I am using profile builder plugin for my front end login/registration.

Thanks

Jackie
replied 8 years ago

The Login / Register link has been removed on DW Question & Answer 1.4.0

taha
replied 8 years ago

I don’t understand why you removed register/login link?

Jackie
replied 8 years ago

Because I want to improve this section. I will add this message back soon.

Franco Colomba
replied 7 years ago

Can you please update the theme to include the register/login link? It’s been a year since the last update ?

Dominic Staff
replied 7 years ago

I sent and notified to our technical team about this issue, we will check and discuss about this issue.

Powered by DW Question & Answer Pro