-
AuthorPosts
-
October 3, 2015 at 12:29 pm #609501
Is it possible to have the sidebar appear at the top of the screen when viewing on mobile instead of at the bottom?
Thanks, Trav
October 3, 2015 at 8:04 pm #609735Hi there,
Thanks for posting in.
Yes possible, but it depends on your current site setup. Usually, this css would do as long as the sidebar is on right.
@media ( max-width: 979px ) { .x-content-sidebar-active .site > .x-container.max.width.offset { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; } .x-content-sidebar-active .site > .x-container.max.width.offset > .x-main { -webkit-box-ordinal-group: 2; -moz-box-ordinal-group: 2; box-ordinal-group: 2; } }
Thanks.
October 3, 2015 at 9:34 pm #609787Thanks for the response but unfortunately it didn’t work. I have the sidebar on the right. And I entered this in customize > custom > css. Is that correct?
Is there anything else I could try?
-Trav
October 4, 2015 at 2:26 am #609929Hi there,
Please update your code to :
@media ( max-width: 979px ) { .x-container.max.width.main .offset.cf { display: -webkit-box; display: -moz-box; display: box; -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical; } .x-main.left { -webkit-box-ordinal-group: 2; -moz-box-ordinal-group: 2; box-ordinal-group: 2; } }
Hope it helps.
October 4, 2015 at 1:12 pm #610290Sweet! It totally worked! thanks!
October 4, 2015 at 1:39 pm #610313You’re most welcome.
Have a great day! 🙂
-
AuthorPosts