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.
Hello,
When a breakpoint is reached and the block sections stack one on top of the other, the content section stacks above the two sidebars. Could you let me know how to have it stack the first sidebar on top, then the content, then the second sidebar?
Really I just need to know the file and key variables to work with.
Thanks!
Comments
Comment #2
leahtard CreditAttribution: leahtard at The Jibe commentedHi StuartL,
The first place you want to look is page.html.twig. Move:
So it sits above:
This will completely throw off the way the current grid system is setup. To fix this, take a look at /sass/_layout--grid.sass
Good luck!
Leah
Comment #3
StuartL CreditAttribution: StuartL commentedHi Leah,
Thanks so much for the response. That was very helpful. The change you suggested definitely helps when it is in 'mobile mode' and puts the first sidebar on top of the content section. Like you said, it throws things off, though. When in 'wide mode', the sidebar doesn't display at all. I have tried playing around with this section of code in the grid layout sass file with no luck. Do you have any suggestions?
Comment #4
leahtard CreditAttribution: leahtard at The Jibe commentedI think removing all references to "shift" should fix this for you:
Comment #5
leahtard CreditAttribution: leahtard at The Jibe commentedJust noticed that I was testing my code from the dev branch where we have recently gone back to a 12 columns grid. So don't copy the code I pasted above. Simply remove all instances of "@include shift" from /sass/_layout--grid.sass. That should do it.
Cheers, Leah
Comment #6
StuartL CreditAttribution: StuartL commentedThanks so much Leah, I really appreciate your help. I will give this a shot.
Comment #7
leahtard CreditAttribution: leahtard at The Jibe commentedComment #8
StuartL CreditAttribution: StuartL commentedUnfortunately I am not able to get the left sidebar to display no matter what I do to the _layout--grid.sass file.