Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
765 views
in Themes by
edited by
I realize that the behaviour of the side panel in iPads become very strange deppending on the position of the screen. If the screen is a portrait, the side panel goes to a place located below the questions and this is odd. If the screen is a landscape, it works well. However, if the screen is a landscape and you are in the ask page, the same strange behaviour.

Is there a way to deal with this behavior?

"Strange behaviour means that the side panel is a thin screen and it is much thinner than the column of (for insntance) questions that are located above."

Edit: I am using the "Snow Flat theme".
Q2A version: 1.7.0

1 Answer

+2 votes
by
selected by
 
Best answer

If you are using Snow or SnowFlat than you can see how to remove sidepanle based on page. See below code

public function sidepanel()
{
    if ($this->template != 'user') {
        qa_html_theme_base::sidepanel();
    }
}

In above code uesr is the page. You also can use qa_request or qa_request_part function instead of $this->template. It is up to you.

To hide sidepanel based on the device size you have to use CSS media query. @media screen......

You can also refer this answer http://question2answer.org/qa/44082/sidebar-custom-html-module-for-registered-user-only#44095

...