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

How to remove "nav-sub" in Unanswered tab ???

(just Unanswered tab only)

Q2A version: 1.5.1

2 Answers

+2 votes
by

Make a custom theme (or just use the mentioned method below) :

 
class qa_html_theme extends qa_html_theme_base
{
    function nav_main_sub()
    {
        $this->nav('main');
        if ($this->template!='unanswered')
        $this->nav('sub');
    }
}

 

+2 votes
by

You can also do this in a custom theme with this CSS rule:

.qa-template-unanswered .qa-nav-sub {display:none;}

...