Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+5 votes
24.1k views
in Q2A Core by

... as it is the most important one for most of the visitors.

qa-page.php

        $hascustomhome=qa_has_custom_home();
        
        if (qa_opt($hascustomhome ? 'nav_qa_not_home' : 'nav_qa_is_home'))
            $qa_content['navigation']['main'][$hascustomhome ? 'qa' : '$']=array(
                'url' => qa_path_html($hascustomhome ? 'qa' : ''),
                'label' => qa_lang_html('main/nav_qa'),
            );
        /* change order of navigation */
        if (qa_opt('nav_ask') && (qa_user_maximum_permit_error('permit_post_q')!='level'))
            $qa_content['navigation']['main']['ask']=array(
                'url' => qa_path_html('ask', (qa_using_categories() && strlen($lastcategoryid)) ? array('cat' => $lastcategoryid) : null),
                'label' => qa_lang_html('main/nav_ask'),
            );
        /**/
 

Q2A version: 1.6.2

2 Answers

0 votes
by
With qa-theme.php this can be done by:

 

            // change navigation: bring "ask" to front
            $hash = $this->content['navigation']['main'];
            $hash = array('ask' => $hash['ask']) + $hash;
            $this->content['navigation']['main'] = $hash;

            // additional: remove tags from menu
            unset($this->content['navigation']['main']['tag']);
0 votes
by

As of 1.8.6, the order can be changed in: /qa-include/app/page.php

Move this block:

// Only the 'level' permission error prevents the menu option being shown - others reported on /qa-include/pages/ask.php

if (qa_opt('nav_ask') && qa_user_maximum_permit_error('permit_post_q') != 'level') {

$qa_content['navigation']['main']['ask'] = array(

'url' => qa_path_html('ask', (qa_using_categories() && strlen($lastcategoryid)) ? array('cat' => $lastcategoryid) : null),

'label' => qa_lang_html('main/nav_ask'),

);

}

above 

if (qa_opt('nav_activity')) {....

...