Archived topic
Header Widget below text logo in mobile/tablent
5 replies · Started by Alfred on December 18, 2016
Hi guys,
Searched through the forum for a solution to display header widget BELOW a text logo in Tablet/Mobile
I found this CSS written by Tom:
The problem is that it now displays to the left in tablet/mobile. Not sure what I am doing wrong.
Would be nice if there was an auto setting in the header display to do this for mobile.
Here is the code I got from github: (https://gist.github.com/generatepress/d39375f70a6ed1075bf0)
@media (max-width: 768px) {
.inside-header {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-flow: row wrap;
flex-flow: row wrap;
}
.site-branding {
-webkit-box-ordinal-group: 1;
-moz-box-ordinal-group: 1;
-ms-flex-order: 1;
-webkit-order: 1;
order: 1;
}
.site-logo {
-webkit-box-ordinal-group: 2;
-moz-box-ordinal-group: 2;
-ms-flex-order: 2;
-webkit-order: 2;
order: 2;
}
.header-widget {
-webkit-box-ordinal-group: 3;
-moz-box-ordinal-group: 3;
-ms-flex-order: 3;
-webkit-order: 3;
order: 3;
}
}
Seems like this would be a good thing to add to the FAQ since it's a common issue I would think.
Thanks,
Alfred
Hi Alfred,
Any chance you can try this code?: http://docs.generatepress.com/article/header-widget/
Thanks Tom,
Yes, that one works. Sorry if I followed an older post. Its tough to know which is the correct solution so there are just so many places to look.
Thanks,
Alfred
That docs site is still in progress - not live yet. Hoping to have it done ASAP :)
Had no idea a doc site was in the works but a great idea. Would save you a lot of time in the end.
BTW, I wonder if add a checkbox in the customzier to have the widget be below the header logo would be a cool feature...just sayin....
Thanks again Tom,
Alfred
I agree, something like that would be a very good idea. Thanks! :)