Viewing 1 replies (of 1 total)
  • Plugin Author DesignWall

    (@designwall)

    If you want to remove or edit the login form on the ask question page, you can open the question-submit-form.php in the plugins > dw-question-answer > templates folder then find the line 85.

    <?php if ( is_user_logged_in() ) : ?>
    		<div><?php _e( "You doesn't have permission to post a question", 'dwqa' ) ?></div>
    	<?php else : ?>
    		<div class="dwqa-answers-login">
    			<div class="dwqa-answers-login-title">
    				<p><?php printf( __( 'Please login or %1$sRegister%2$s to submit your answer', 'dwqa' ), '<a href="'.wp_registration_url().'">', '</a>' ) ?></p>
    			</div>
    			<div class="dwqa-answers-login-content">
    				<?php wp_login_form(); ?>
    				<?php do_action( 'wordpress_social_login' ); ?>
    			</div>
    		</div>
    	<?php endif; ?>

    Note: If you don’t want to override this custom in the next updates, you should
    Go to your theme folder (wp-content/themes/[theme-name]), and create a new folder, named it “dwqa-templates”. Inside your new folder, copy the question-submit-form.php file and paste this file into the “dwqa-templates” folder.
    Now, open up the new file in notepad or any code editor, and custom this file.

Viewing 1 replies (of 1 total)
  • The topic ‘How to delete login or register form from ask question form’ is closed to new replies.