I created this block for use in a commercial guide I'm doing and I'll share with you . As the search for answers , always enter the field content before of sidebar 1 and 2 in mobile and tablet devices , I created this custom mainbody block so I can put the categories in sidebar 1 and search filter in sidebar 2 . And when access is made of phones and tablets , these fields (sidebar 1 and 2 ) appear at the top of the mainbody , before content field (which returns the search results ) . Go templates \ t3_bs3_blank \ tpls \ blocks \ mainbody folder , and create a new file in this location . Name "two- sidebar- p " .
Now copy this code into " two - sidebar- p "
Now copy this code into " two - sidebar- p "