Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am trying to put the sidebar top of the content on mobile layouts like tablet or smalltouch.
As default AT Core provides a similar layout which is One Column Stacked. I need to have the sidebar on top of the content instead of under the content.
Current desktop layout:
--------------------------
| | |
| | |
| A | content |
| | |
| | |
--------------------------
Mobile layout wanted to be:
----------------
| A (sidebar) |
----------------
| |
| content |
| |
----------------
Thanks in advance for any help or clue.
Comments
Comment #1
aliyakhan CreditAttribution: aliyakhan commentedCreate a new layout so that you can set these preferences on you own.
You'll set it like:
if (!empty($css_id)) { print "id=\"$css_id\""; }
>print $content['sidebar'];
print $content['contentmain'];
Best,
AK