- This topic has 11 replies, 2 voices, and was last updated 4 years, 10 months ago by Leo.
-
AuthorPosts
-
June 10, 2019 at 5:44 pm #925340Raielene
I’ve used bits of CSS found here to try to get my header widget content (a menu that I don’t want to be condensed, just listed vertically) and I’ve gotten close, but it’s still not right.
My logo isn’t centred and neither is the menu items.
I increased the size of the widget to fit my 3 menu items into it on desktop:
.header-widget {
max-width: 75%;
}Then moved it down a bit to make it centred vertically:
@media (min-width:769px) {
.header-widget {
padding-top: 30px;
}
}Then I used this code to try to move those menu items below my logo:
/* header widget under logo */
@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;
}
}Also, ideally, I’d like that entire menu area to have a background colour (another bar like the menu below it) if there’s a way to do that?
June 10, 2019 at 6:26 pm #925358LeoStaffCustomer SupportHi there,
Let’s try one thing at the time π
So just to make sure, you want the header widgets to be centered below the logo right?
If so, add
flex-direction: column;
to this CSS:.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; }
Then add
margin: auto;
to this section:.header-widget { -webkit-box-ordinal-group: 3; -moz-box-ordinal-group: 3; -ms-flex-order: 3; -webkit-order: 3; order: 3; }
Let me know π
June 11, 2019 at 10:04 am #926160RaieleneCloser! Much closer. It all still seems a little off-centre to me. It’s leaning a little to the right.
In a perfect world, I’d get everything perfectly centred, give some space between the logo and menu (right now they’re closer to each other than the menu items), then put the menu into it’s own band.
June 11, 2019 at 10:49 am #926198LeoStaffCustomer SupportYour page looks different than before:
https://www.screencast.com/t/KFlpzMt8KVmLCan you double check?
I also see LiteSpeed cache activated so please take a look at this note:
https://www.screencast.com/t/sAZU8h7bUcEJune 11, 2019 at 10:56 am #926206RaieleneLiteSpeed is for sure deactivated. Maybe you checked while I was clearing and purging, etc. and saw it before I deactivated? It’s for sure deactivated now.
June 11, 2019 at 10:59 am #926212LeoStaffCustomer SupportUnfortunately I’m still seeing the same weird page as before using incognito mode and hard cleared cache on my end.
June 11, 2019 at 12:21 pm #926270RaieleneI can’t understand why that would be… I’ve purged the cache and deactivated LiteSpeed.
For now, can you just look at one of the interior pages? I think the issue might only be with that main page for some reason…
Try this one: https://www.bluepixeldesigndevelopment.com/bluepixeldesign/definition-of-psychosis/
June 11, 2019 at 12:44 pm #926286LeoStaffCustomer SupportSub pages work.
It’s not centered because the left and right header padding aren’t the same:
https://www.screencast.com/t/iGFX66TBw
You can adjust it here:
https://docs.generatepress.com/article/header-padding/June 11, 2019 at 1:44 pm #926347RaieleneOh! Good catch! Thanks!
I don’t suppose there’s a way to make the header widget background full width on mobile while keeping the contents centred? (If I give that header widget a background, it just makes my little content area coloured when I’d ideally like a bar there. Obviously that widget is just that little box, so that’s not how it works, but can I make it look like it somehow?)
June 11, 2019 at 6:22 pm #926472LeoStaffCustomer SupportNot really a way to make full width as it’s inside the header with the padding:
https://www.screencast.com/t/5nNw2hf0wIWe can make it wider with this CSS:
@media (max-width: 768px) { .header-widget { width: 100%; } }
June 12, 2019 at 10:34 am #927333RaieleneThought so. Thanks!
June 12, 2019 at 10:38 am #927335LeoStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.