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.


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

and replace it with your new social login code.

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.


replied 8 years ago

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

replied 8 years ago

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

replied 8 years ago

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

Franco Colomba
replied 6 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 6 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