$sidebar_second = render($page['sidebar_second']); print $sidebar_second;  

generate by default

 <div class="region region-sidebar-second sidebar">
     <div class="region-inner clearfix">   </div>

How can i remove these wrappers ?


Add a copy, or edit the existing copy, of the core (or your theme/sub-theme's) region.tpl.php file, to your active theme. You can change the wrapping markup to whatever you like in there.

Clear the cache, and you're done.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.