{"id":75,"date":"2016-12-19T22:14:34","date_gmt":"2016-12-19T22:14:34","guid":{"rendered":"http:\/\/docs.generatepress.com\/?post_type=kp_articles&p=75"},"modified":"2016-12-24T06:11:54","modified_gmt":"2016-12-24T06:11:54","slug":"header-widget","status":"publish","type":"keep_articles","link":"https:\/\/docs.generatepress.com\/article\/header-widget\/","title":{"rendered":"Header Widget"},"content":{"rendered":"
By default, there’s a header widget area available to you in “Appearance > Widgets” or “Customize > Widgets”.<\/p>\n
You can put any kind of widget in this area and it will show up on the right side of your header area.<\/p>\n
By default it’s set to float right and be 50% width of your header. You can adjust this with some CSS:<\/p>\n
.header-widget {\n float: right;\n max-width: 50%;\n}\n<\/pre>\nShowing your header widget below other header elements on mobile<\/h3>\n
Sometimes people want to display the header widget below their other header elements while on mobile. This is achievable with some CSS:<\/p>\n
@media (max-width: 768px) {\n\t.inside-header {\n\t\tdisplay: -webkit-box;\n\t\tdisplay: -moz-box;\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: -webkit-flex;\n\t\tdisplay: flex;\n\t\t-webkit-flex-flow: row wrap;\n\t\tflex-flow: row wrap;\n \t}\n \n\t.site-branding {\n\t\t-webkit-box-ordinal-group: 1;\n\t\t-moz-box-ordinal-group: 1;\n\t\t-ms-flex-order: 1;\n\t\t-webkit-order: 1;\n\t\torder: 1;\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n \n\t.site-logo {\n\t\t-webkit-box-ordinal-group: 2; \n\t\t-moz-box-ordinal-group: 2; \n\t\t-ms-flex-order: 2; \n\t\t-webkit-order: 2; \n\t\torder: 2;\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t.header-widget {\n\t\t-webkit-box-ordinal-group: 3;\n\t\t-moz-box-ordinal-group: 3;\n\t\t-ms-flex-order: 3;\n\t\t-webkit-order: 3;\n\t\torder: 3;\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n}<\/pre>\n","protected":false},"template":"","yoast_head":"\nHeader Widget - Documentation<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n