Remy Medranda
asked 10 years ago

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

1 Answers
DominicStaff
answered 10 years ago

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

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