• When i am not log in and try to ask question i have title that i should be log in. But when i try to answer question i do not have any title about autorization, i just can not answer and there is no more info. How can i add warning about autorization for page with question?

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

    (@designwall)

    Hi mate,

    You can open files in the templates folder such as content-single-answer.php or archive-question.php…. and add this code into parts that you want to show warning to unlogged users

    .<?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’ ), ‘‘, ‘‘ ) ?></p>
    </div>
    <div class=”dwqa-answers-login-content”>
    <?php wp_login_form(); ?>
    <?php do_action( ‘wordpress_social_login’ ); ?>
    </div>
    </div>
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘There is no any warning about autorization’ is closed to new replies.