sidebar in mobileview
URL to the page in question:
http://
-
HEllo,
there are many widgets for the sidebar, but you have to scroll much on mobile devices to see the main content…
is it possible to show the sidebar content after the page content?
Thanks
Alan,
Fantastic question. Everything on a web page is split up into boxes. Typically you’ll have a sidebar that’s one box and a content area that’s another. Some pages also have separate headers and footers too.
In the Umami theme, the navigation, widgets, logo and footer credits are all in the same box (the sidebar). Since they are all there together, it’s not possible to pull out only one part of it and position it below the next box (the content).
One option would be to selectively hide some of the widgets on smaller devices. That would be possible. If you’d like to go that route, send over a link to your site and let me know which widgets you’d like to hide on a smaller screen and I’ll show you how to do that.
Thanks,
Bill
Bill,
thanks for your response.
Would it be possible to hide the widgets on all pages except the “startpage” on smaller devices?
or choose whether a page displays widgets or not?
Thanks,
Alan
Alan,
You can set it to work that way. Here’s how:
- Go to the Theme Options page and select the Advanced tab.
- Scroll down to the Custom CSS box and paste this:
@media only screen and (max-width: 767px) {
#sidebar .widget {
display: none;
}
.home #sidebar .widget {
display: block;
}
}
- Update your settings.
That should hide the widgets on a smaller screen everywhere but the home page.
Let me know if you run into any trouble,
Bill
Hi Bill,
Thanks for the answer.
that works well.
regards,
Alan
Anytime Alan. Have a great weekend!
- The topic ‘sidebar in mobileview’ is closed to new replies.