login link in on Login/Signup which show up below the question.

5.89K viewsGeneral
0

hi

I dont know how to change this link in this file wp-content/plugins/anspress-question-answer/theme/default/login-signup.php

this file looks like:

<?php if(!is_user_logged_in() && !ap_opt(‘allow_anonymous’)): ?>
<div class=”ap-please-login”>
<?php printf(__(‘Please %s or %s.’, ‘anspress-question-answer’), ‘<a data-action=”ap_modal” data-toggle=”#ap-login-modal” href=”‘.wp_login_url(get_permalink()).'”>’.__(‘Login’, ‘anspress-question-answer’).'</a>’, ‘<a href=”‘.wp_registration_url().'”>’.__(‘Sign up’, ‘anspress-question-answer’).'</a>’) ?>
<?php do_action( ‘wordpress_social_login’ ); ?>
</div>
<div id=”ap-login-modal” class=”ap-modal”>
<div class=”ap-modal-backdrop”></div>
<div class=”ap-modal-inner”>
<div class=”ap-modal-header”>
<i class=”ap-modal-close” data-action=”ap_modal_close”>&times;</i>
<h3 class=”ap-modal-title”><?php _e(‘Login’, ‘anspress-question-answer’); ?></h3>
</div>
<div class=”ap-modal-body”>
<?php wp_login_form(); ?>
</div>
</div>
</div>
<?php endif; ?>

 

where should I insert my login address?

 

thank you

0

Hi something confusion :

As per my understanding i had change the below code is mentioned below, but still unable to login through theme main login / sign up link.

<?php if(!is_user_logged_in() && !ap_opt('allow_anonymous')): ?>
	<div class="ap-please-login">
		<?php printf(__('Please %s or %s.', 'anspress-question-answer'), '<a data-action="ap_modal" data-toggle="#ap-login-modal" href="'.wp_login_url(http://insuranceinfo.co.in/register()).'">'.__('Login', 'anspress-question-answer').'</a>', '<a href="'.wp_registration_url().'">'.__('Sign up', 'anspress-question-answer').'</a>') ?>
		<?php do_action( 'wordpress_social_login' ); ?>
	</div>
	<div id="ap-login-modal" class="ap-modal">
		<div class="ap-modal-backdrop"></div>
		<div class="ap-modal-inner">
			<div class="ap-modal-header">
				<i class="ap-modal-close" data-action="ap_modal_close">&times;</i>
				<h3 class="ap-modal-title"><?php _e('Login', 'anspress-question-answer'); ?></h3>
			</div>
			<div class="ap-modal-body">
				<?php wp_login_form(); ?>
			</div>
		</div>
	</div>
<?php endif; ?>
You are viewing 1 out of 2 answers, click here to view all answers.