Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
23.5k 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

1 Answer

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']);
...