I am using the snow flat theme. I am testing in an Ipad.
class qa_html_theme_layer extends qa_html_theme_base { public function body() { if (qa_is_mobile_probably()) { if(isset($this->content['sidepanel'])){ unset($this->content['sidepanel']); } } qa_html_theme_base::body(); } }
You do not need to unset anything here. Just override the sidepanel method into your theme or plugin file. See in the SnowFlat or FlatBox. I have used mobile detection to switch the sidepanel.
Something like below code
public function sidepanel() { if ( ! qa_is_mobile_probably() ) { qa_html_theme_base::sidepanel(); } }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.