[email protected]
asked 6 years ago

I\’m using a divi theme it kept on telling the users that they did not have permission to submit a question

3 Answers
DominicStaff
answered 6 years ago

You can configure the permission in the Dashboard > Questions > Settings > Permission tab.

ONWUCHEKWA OJIKE
answered 6 years ago

Please How can I tell them to register HERE in other get permission?

Dominic Staff
replied 6 years ago

Please let me know detail about this question.

ONWUCHEKWA OJIKE
replied 6 years ago

I want an anonymous user (with denied access on pro) to see a message like: “PLEASE REGISTER HERE (link) in order to post a new question/comment”

DominicStaff
answered 6 years ago

You can add the following code to the position that you want to show the message:

<?php if ( is_user_logged_in() ) : ?>
     <div><?php _e( "You doesn't have permission to post a question", 'dwqa' ) ?></div>
     <?php else : ?>
     <?php dwqa_load_template( 'login', 'form' ) ?>
     <?php endif; ?>
<?php endif; ?>

Note: You can create a dwqa-templates folder in your theme and in the dwqa-templates folder, you create the following folders: dwqa-templates > styles > your-style
See the screenshot: http://prntscr.com/l1i6sy

Then copy/paste the template file of the DW Q&A plugin into the your-style folder to custom.

Powered by DW Question & Answer Pro