[Question2Answer] Hide all questions for anonymous users?

0 votes
How to hide all questions including the list on home page.
asked Jan 16, 2018 in dev-sites by josef (200 points)

1 Answer

0 votes


Yes. Open \qa-theme\NAME OF SELECTED TEMPLATE\qa-theme.php

insert the following code directly after the line which contains <?php

if ((!qa_is_logged_in()) and !((strpos(qa_self_html(),'login') !== false )||(strpos(qa_self_html(),'forgot') !== false ))) {



and add the following codejust before the end of the file (but before ?> if it contains ?>)


answered Jan 16, 2018 by josef (200 points)