Remy Medranda
asked 9 years ago

Can I hide the login box? I don’t want people to login.

1 Answers
answered 9 years ago

,why dont you try and uncheck the registration process from dashboard>>settings>>anyone can register of wordpress if you dont want anyone to register for your site,or if you really want to remove the form from just answer page the this is what you may be looking for

<h3 class=”dwqa-title”>
printf(‘%1$s %2$s <a href=”%3$s” title=”%4$s”>%4$s</a> %5$s %6$s’,
__(‘Please login’,’dwqa’),
site_url( ‘wp-login.php?action=register’ ),
__(‘Submit Answer’,’dwqa’)
<div class=”login-box”>
<?php wp_login_form( array(
‘redirect’ => get_post_permalink( $question_id )
) ); ?>

the file you can find the above code is answer.php which can be found in wp-contentpluginsdw-question-answerinctemplatesdefault folder
Hope this helps !

Powered by DW Question & Answer Pro