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

In advanced theme I tried:

            // remove category widget from the sidebar
            if($this->template=='qa') {
                unset( $this->content['navigation']['cat'] );
            }


But without effect. Can anybody help?

Thanks, Kai

Q2A version: 1.6.2

1 Answer

0 votes
by
selected by
 
Best answer

Depending upon the theme you are using:

In qa-theme.php 

If the sidepanel function does not exist add this:

        function sidepanel()
        {
            $this->output('<div class="qa-sidepanel">');
            $this->widgets('side', 'top');
            $this->sidebar();
            $this->widgets('side', 'high');
            
// $this->nav('cat', 1);
            $this->widgets('side', 'low');
            $this->output_raw(@$this->content['sidepanel']);
            $this->feed();
            $this->widgets('side', 'bottom');
            $this->output('</div>', '');
        }

 

If the sidepanel function already exists add // in front of  $this->nav('cat', 1);

 

Monty and Bex

by
thanks monty, sometimes I just want to make it complicated ;)
by
After working with Q2A for only a short period of time I am constantly amazed that one person could even produce such a complex piece of software.  My only disappointment is the lack of documentation - poor use of the wiki.  With a more comprehensive code documentation I am sure many more people would get involved.  Best wishes

Monty and Bex
by
Because of the lack of documentation it took me 1,5 years to kind of handle a lot of aspects of the software. I am sure there will be a better documentation in the future. For now, just use the questions and answers here in this forum as "documentation". Regards, Kai
...