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
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.
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
The Login / Register link has been removed on DW Question & Answer 1.4.0
I don’t understand why you removed register/login link?
Because I want to improve this section. I will add this message back soon.
Can you please update the theme to include the register/login link? It’s been a year since the last update ?
I sent and notified to our technical team about this issue, we will check and discuss about this issue.
Please login or Register to submit your answer