Q2A: making the main content div appear before the side panel

After checking the Question2Answer pages' HTML code, I find that the main div comes after the side panel.

How to revert the position of the main div and side panel div? Makes the main content come first in the HTML.

asked Feb 19, 2013 by anonymous

1 Answer

Best answer

You can change the displaying order by overwriting the body_content() function in the theme (that is, you need to customize the Q2A theme).

Just edit the qa-theme.php file in the theme and adding this function in the class qa_html_theme that extends qa_html_theme_base:

function body_content()

        $this->output('<DIV CLASS="qa-body-wrapper">', '');

        $this->widgets('full', 'top');
        $this->widgets('full', 'high');
        $this->widgets('full', 'low');
        $this->widgets('full', 'bottom');

        $this->output('</DIV> <!-- END body-wrapper -->');

answered Feb 19, 2013 by SA (14,760 points)

Please log in or register to answer this question.

Related questions

1 answer
1 answer
1 answer
1 answer
asked Jun 10, 2014 by Eric Z Ma (44,280 points)
1 answer
Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost