Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by

In qa-app-options there is the following function:


function qa_has_custom_home()
Returns true if the home page has been customized, either due to admin setting, or $QA_CONST_PATH_MAP
   return qa_opt('show_custom_home') || (array_search('', qa_get_request_map())!==false);
Based on the comment, and the function it indicates that it's possible to set a custom home-page in question2answer. I can't find any documentation on how to do this programatically, or in the admin-settings. Could someone please point me in the right direction?

1 Answer

0 votes

In the qa-config.php file, around line 98, you'll find the definitions for $QA_CONST_PATH_MAP. So for instance, and I'm using an answer provided by another user, if you want to set the home page to be the Hot! page, do this:

Edit qa-config.php :
'hot' => '',


You can also add custom code in the admin panel under "layouts". There's a checkbox to add a custom home page, but it's limited to html code I believe.